/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 vote119 views1 answer
- 3 votes119 views2 answers
- 0 vote123 views2 answers
- 0 vote124 views1 answer
- 18 votes123 views5 answers
- 0 vote113 views1 answer
- 1 vote116 views1 answer
- 0 vote115 views1 answer
- 0 vote113 views1 answer
- 0 vote131 views1 answer