/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 vote246 views1 answer
- 0 vote243 views1 answer
- 17 votes256 views4 answers
- 75 votes254 views2 answers
- 1 vote225 views1 answer
- 0 vote238 views1 answer
- 0 vote241 views1 answer
- 6 votes234 views3 answers
- 1 vote240 views1 answer
- 8 votes244 views2 answers