/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 vote292 views1 answer
- 0 vote300 views1 answer
- 4 votes279 views3 answers
- 0 vote346 views1 answer
- 0 vote296 views1 answer
- 1 vote277 views2 answers
- 1 vote330 views1 answer
- 0 vote277 views1 answer
- 8 votes271 views4 answers
- 0 vote284 views1 answer