/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 vote208 views1 answer
- 0 vote211 views1 answer
- 6 votes212 views4 answers
- 0 vote208 views1 answer
- 0 vote249 views1 answer
- 1 vote215 views3 answers
- 0 vote211 views1 answer
- 1 vote221 views2 answers
- 0 vote222 views2 answers
- 1 vote203 views2 answers