Algorithm for calculate the sum of first 100 integers
Answers
Answered by
1
Answer:
num = 100
while num > 0:
sum = sum + num
num = num - 1
print("sum of first 100 positive integer is ", num)
Similar questions