/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
- 7 votes258 views6 answers
- 0 vote265 views1 answer
- 1 vote247 views1 answer
- 0 vote265 views1 answer
- 101 votes259 views6 answers
- 0 vote259 views1 answer
- 104 votes260 views5 answers
- 0 vote252 views1 answer
- 74 votes250 views1 answer
- 0 vote237 views1 answer