j = 0dt = 0.01for i in range(0,100): y = i * dt j = j + dt * y**2print(j)
Standard input is empty
0.32835000000000014
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!