/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
- 1 vote174 views1 answer
- 0 vote111 views1 answer
- 1 vote157 views3 answers
- 3 votes103 views6 answers
- 0 vote105 views1 answer
- 1 vote106 views1 answer
- 0 vote105 views1 answer
- 37 votes106 views6 answers
- 2 votes183 views1 answer
- 6 votes80 views2 answers