Respuesta :
Answer:
isum = 0
for i in range(99,0,-1):
isum = isum + i
print(isum)
Explanation:
This line initializes isum to 0
isum = 0
The following iteration starts from 99 and ends at 1
for i in range(99,0,-1):
This line adds the series
isum = isum + i
This line prints the sum of the series
print(isum)
The program that will add up the series of numbers: 99, 98, 97… 3, 2, 1 is represented as follows using for loop, the range() function and one print() function.
sum = 0
for i in range(1, 100):
sum += i
print(sum)
The code is written in python.
The variable sum is initialise to zero.
For loop is used to loop through the range of number 1 to 100(excluding 100).
Then the numbers are added to the sum initialised to zero.
The total sum is then printed.
learn more on python here: https://brainly.com/question/22164565?referrer=searchResults