/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 vote361 views1 answer
- 8 votes307 views1 answer
- 0 vote331 views1 answer
- 0 vote316 views1 answer
- 0 vote334 views1 answer
- 25 votes351 views2 answers
- 0 vote281 views1 answer
- 1 vote330 views1 answer
- 0 vote416 views1 answer
- 0 vote370 views1 answer