/Python/S=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()
S=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()
S=0 def sum(x,y): n=int(input("enter no. of terms") for i in range(n): l=int(input("enter no.")) s=s+l print(s) sum()
0
- 0 vote221 views2 answers
- 1 vote282 views1 answer
- 0 vote242 views1 answer
- 1 vote253 views1 answer
- 2 votes240 views2 answers
- 0 vote250 views2 answers
- 3 votes251 views3 answers
- 2 votes248 views1 answer
- 1 vote246 views1 answer
- 1 vote285 views1 answer