S=0+1+2+3+4+5............n
Series Program
Answers
Answered by
1
Answer:
Python program:
n=int(input('Enter no. of terms'))
k=1
S=0
while k<=n:
S+=k
print("SUM=", S)
Similar questions