/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 vote144 views1 answer
- 5 votes128 views3 answers
- 10 votes165 views1 answer
- 28 votes131 views5 answers
- 0 vote149 views1 answer
- 0 vote157 views1 answer
- 14 votes163 views5 answers
- 1 vote127 views1 answer
- 1 vote125 views1 answer
- -1 vote146 views2 answers