Computer Science, asked by koral8919, 1 month ago

Algorithm for calculate the sum of first 100 integers

Answers

Answered by Sneha3123
1

Answer:

num = 100

while num > 0:

sum = sum + num

num = num - 1

print("sum of first 100 positive integer is ", num)

Similar questions