Answer to Question #138713 in Python for lexie prozan

Question #138713
Write a program that will add up the series of numbers: 99, 98, 97… 3, 2, 1. The program should print the running total as well as the total at the end. The program should use one for loop, the range() function and one print() command.
1
Expert's answer
2020-10-16T13:11:40-0400
total = 0
for i in range(99,0,-1):
    total += i
    print("running total:",total)


print("total: ",total)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS