Computer Science, asked by reumm, 4 months ago

4.9 Code Practice: Question 3

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.

Sample Run
99

197

294

390







4940

4944

4947

4949

4950

Answers

Answered by jai696
3

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

_sum = 99

for n in range(99, 0, -1):

print(_sum)

_sum += n - 1

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions