/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 vote194 views1 answer
- -1 vote183 views1 answer
- 0 vote200 views1 answer
- 2 votes203 views3 answers
- 0 vote212 views1 answer
- 18 votes202 views4 answers
- 0 vote207 views1 answer
- 2 votes196 views2 answers
- 6 votes206 views2 answers
- 2 votes185 views1 answer