/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
- 3 votes396 views4 answers
- 12 votes349 views6 answers
- 1 vote334 views1 answer
- 2 votes314 views1 answer
- 0 vote347 views1 answer
- 0 vote374 views2 answers
- 1 vote354 views1 answer
- 0 vote364 views1 answer
- 0 vote378 views3 answers
- 2 votes370 views2 answers