accept number from user and calculate the sum of all number between 1 and given number in python
Answers
Answered by
0
a=int(input("Enter number : "))
sum=0
for i in range(a,0,-1):
sum+=i
print("Sum :",sum)
Similar questions