/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
- 7 votes195 views1 answer
- 13 votes228 views2 answers
- 25 votes207 views6 answers
- 0 vote192 views1 answer
- 0 vote216 views1 answer
- -2 votes195 views1 answer
- 10 votes215 views4 answers
- 0 vote199 views1 answer
- 0 vote194 views1 answer
- 0 vote204 views1 answer