/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
- 7 votes109 views2 answers
- 2 votes112 views3 answers
- 0 vote112 views1 answer
- 16 votes123 views6 answers
- 0 vote111 views1 answer
- 15 votes245 views3 answers
- 3 votes114 views1 answer
- 0 vote122 views1 answer
- 0 vote106 views1 answer
- 2 votes116 views1 answer