/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
- 15 votes175 views5 answers
- 1 vote186 views2 answers
- 0 vote345 views1 answer
- 0 vote179 views1 answer
- 8 votes179 views4 answers
- 6 votes204 views2 answers
- 1 vote171 views1 answer
- 0 vote179 views1 answer
- 0 vote182 views1 answer
- 3 votes181 views1 answer