/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
- 2 votes280 views1 answer
- 2 votes315 views2 answers
- 0 vote275 views1 answer
- 0 vote366 views1 answer
- 29 votes401 views3 answers
- 0 vote284 views1 answer
- 0 vote265 views4 answers
- 0 vote301 views2 answers
- 1 vote260 views1 answer
- 5 votes257 views2 answers