Question #101695

Write code using the range function to add up the series 99, 98, 97, ... 1 and print the resulting sum.

Expert's answer

s=0

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

s=s+i

print("s=",s)







LATEST TUTORIALS
APPROVED BY CLIENTS