/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 vote143 views1 answer
- 0 vote137 views1 answer
- 2 votes133 views1 answer
- 0 vote141 views1 answer
- 0 vote152 views1 answer
- 0 vote159 views2 answers
- 0 vote139 views1 answer
- 23 votes274 views2 answers
- 0 vote136 views1 answer
- 1 vote151 views1 answer