Computer Science, asked by Batikha, 27 days ago

accept number from user and calculate the sum of all number between 1 and given number in python

Answers

Answered by indiantechsmith
0

a=int(input("Enter number : "))

sum=0

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

sum+=i

print("Sum :",sum)

Similar questions