/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
- 8 votes265 views3 answers
- 0 vote246 views1 answer
- 10 votes279 views2 answers
- 3 votes288 views1 answer
- 21 votes260 views4 answers
- -1 vote305 views2 answers
- 0 vote242 views1 answer
- 0 vote264 views1 answer
- 1 vote247 views1 answer
- 0 vote267 views1 answer