/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 vote181 views1 answer
- 32 votes161 views6 answers
- 6 votes167 views2 answers
- 11 votes162 views2 answers
- -2 votes156 views1 answer
- 3 votes193 views2 answers
- 23 votes204 views2 answers
- 0 vote161 views1 answer
- 0 vote165 views1 answer
- 15 votes167 views5 answers