/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 vote290 views1 answer
- 0 vote344 views1 answer
- 0 vote254 views1 answer
- 23 votes318 views3 answers
- 18 votes398 views3 answers
- 0 vote291 views1 answer
- 0 vote277 views1 answer
- 28 votes360 views2 answers
- 0 vote265 views1 answer
- 1 vote274 views1 answer