# your code goes herev=inputn = int(v())answer = 0while(n) : n-=1 a, b = [float(x) for x in input().split()] answer += a*bprint(answer)
5 1.0 12.0 0.7 5.2 0.9 10.7 0.5 20.4 0.2 30.0
41.47
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!