/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
- 12 votes189 views3 answers
- 0 vote228 views1 answer
- 16 votes178 views4 answers
- 5 votes209 views6 answers
- 0 vote195 views1 answer
- 0 vote203 views1 answer
- 0 vote217 views1 answer
- 1 vote210 views1 answer
- 0 vote184 views2 answers
- 0 vote193 views1 answer