4.9 Code Practice: Question 3

total = 0
for x in range(99, 0, -1):
total += x
print(total)
I hope this helps!
The program adds displays the sum of integers from 99 decreased by 1 until 0 and displays the running total for each step. The program written in python 3 goes thus :
running_total = 0
#initialize a running total variable which hold the sum of all the iterations
for num in range(99, 0, -1):
#using a for loop, which accepts a range starting from 99 and decreases by 1 until the 0
running_total += num
#for each iterated value, add the value to the running total variable
print(running_total)
#display the running total for each iteration.
A sample run of the program ls attached.
Learn more : https://brainly.com/question/19115265