sum of natural numbers Get link Facebook X Pinterest Email Other Apps March 29, 2022 sum of natural numbers n=int(input()) c=0 s=0 while(c<=n): s+=c c+=1 print(s) Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment