Skip to main content
Search
TYPE HERE
PYTHON PROGRAMMES
By Nilay Saraf For PYTHON 3.0 and Above
Home
More…
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
Labels
Programmes Using For Loop
July 15, 2019
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
How To Print Sum of n Terms
#SUM OF n TERMS
n=int(input('Enter Number Of Terms :- '))
sum=0
for i in range(1,n+1):
sum+=i # OR sum=sum+1
print('The Sum = ',sum)
Made
by
:-
Nilay Saraf
Comments
Popular Posts
July 02, 2019
How To Calculate Simple Interest
July 02, 2019
How To Calculate Compund Interest
Comments
Post a Comment