CS Resources
Home
CS Useful Links
Photo Albums
Social Pages
Monday, July 23, 2018
SUM OF SUM OF NATURAL NUMBERS
N=int(input("Enter N:"))
S,SS=0,0
for I in range(1,N+1):
SS+=I
S+=SS
print(SS,"+",end=" ")
print("=",S)
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)