/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
- 9 votes310 views3 answers
- 0 vote360 views1 answer
- 3 votes301 views1 answer
- 30 votes355 views6 answers
- 0 vote313 views1 answer
- 0 vote307 views1 answer
- 0 vote314 views1 answer
- 10 votes326 views2 answers
- 21 votes299 views5 answers
- 1 vote316 views1 answer