/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
- 1 vote278 views2 answers
- 0 vote238 views3 answers
- 0 vote230 views1 answer
- 0 vote226 views1 answer
- 0 vote226 views1 answer
- 0 vote213 views1 answer
- 0 vote212 views1 answer
- 0 vote232 views1 answer
- 2 votes247 views2 answers
- 5 votes228 views1 answer