Hi, I have a problem with a sequence. The sequence is a number range from 1 to 100. I need to show each number and also the running total of each number. for example First number in sequence is 1, running total 1. Next number in sequence is 2, running total is 1+2 = 3. and so on. I need to use the while function.
n = 1
while n < 101 :
print n
n = n+1
This gives me the sequence. Just dont know how to do the running total
Thanks in advance
Apsu