Computer Science, asked by lipubeherapersonal, 1 year ago

S=0+1+2+3+4+5............n
Series Program

Answers

Answered by karanjotgaidu
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