/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 vote296 views1 answer
- 0 vote340 views1 answer
- 1 vote297 views1 answer
- 1 vote348 views1 answer
- 0 vote339 views1 answer
- 0 vote336 views1 answer
- 1 vote313 views1 answer
- 5 votes310 views1 answer
- 0 vote333 views1 answer
- 13 votes276 views2 answers