Ask the user for an integer, n, and perform the following summation using a while loop. During each loop iteration, display the value computed during this iteration as well as the running total of the...


Ask the user for an integer, n, and perform the following summation using a
while 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: 7
New Value: 1, Current Sum: 1
New Value: 3, Current Sum: 4
New Value: 6, Current Sum: 10
New Value: 10, Current Sum: 20 etc. . .
The final summation answer will depend on the value of n chosen by the user. As an
example, for n = 10, the final summation should be 220.


Answer needed in python


i(i+1)<br>2<br>i=1<br>

Extracted text: i(i+1) 2 i=1

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here