/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
- 0 vote121 views1 answer
- 0 vote118 views1 answer
- 0 vote121 views1 answer
- 0 vote114 views1 answer
- 0 vote117 views1 answer
- 0 vote109 views1 answer
- 0 vote148 views1 answer
- 1 vote119 views1 answer
- 2 votes118 views1 answer