Ask the user for an integer, n, and perform the following summation using awhile loop. During each loop iteration, display the value computed during this iteration as well as the running total of the sum. When the loop is finished, output the total sum.
[REFER IMAGE]
The first few rounds of output should look like:Give me a number: 7New Value: 1, Current Sum: 1New Value: 3, Current Sum: 4New Value: 6, Current Sum: 10New Value: 10, Current Sum: 20 etc. . .The final summation answer will depend on the value of n chosen by the user. As anexample, for n = 10, the final summation should be 220.
Answer needed in python
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here