- python program for add natural numbers
n=int(input("enter the number")) sum=0 i=1 while i<=n:
sum=sum+i i=i+1
print("the sum is",sum)
Start a discussion with MANSI121999
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. Start a new discussion to connect and collaborate with MANSI121999. What you say here will be public for others to see.