/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
- 10 votes323 views1 answer
- 10 votes346 views3 answers
- 0 vote329 views1 answer
- 1 vote304 views1 answer
- 2 votes351 views1 answer
- 2 votes357 views1 answer
- 1 vote361 views1 answer
- 0 vote395 views1 answer
- 0 vote364 views3 answers
- 0 vote337 views1 answer