python - Write a program to find the sum of N numbers. Email ThisBlogThis!Share to TwitterShare to Facebook Reactions: Labs 2 Comments
a=int(raw_input("enter the number "))
ReplyDeletes=0
t=a
while a>0:
s=s+a
a=a-1
print s
n=int(input('Enter a number'))
ReplyDeletes= 0
while(n > 0):
s=s+n
n=n-1
print s