/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
- -2 votes283 views1 answer
- 114 votes284 views6 answers
- 0 vote255 views2 answers
- 0 vote243 views1 answer
- 0 vote334 views1 answer
- 5 votes257 views1 answer
- 1 vote261 views1 answer
- 0 vote260 views1 answer
- -1 vote262 views3 answers
- 1 vote247 views1 answer