/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 vote192 views1 answer
- 28 votes179 views2 answers
- 1 vote192 views1 answer
- 0 vote175 views1 answer
- 0 vote182 views2 answers
- 0 vote192 views1 answer
- 14 votes182 views2 answers
- 0 vote171 views1 answer
- 0 vote205 views1 answer
- 8 votes170 views6 answers