/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 vote160 views1 answer
- 21 votes134 views2 answers
- 0 vote158 views1 answer
- 1 vote146 views1 answer
- 0 vote173 views1 answer
- 1 vote145 views1 answer
- 0 vote171 views1 answer
- 0 vote143 views1 answer
- 0 vote138 views4 answers
- 2 votes144 views2 answers