/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 vote172 views1 answer
- 0 vote147 views1 answer
- 0 vote161 views1 answer
- 0 vote186 views1 answer
- 0 vote155 views1 answer
- 2 votes140 views1 answer
- 0 vote150 views1 answer
- 0 vote146 views1 answer
- 2 votes158 views4 answers
- 54 votes306 views2 answers