/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
- 108 votes148 views6 answers
- -1 vote129 views2 answers
- 0 vote137 views1 answer
- 8 votes141 views3 answers
- 0 vote185 views1 answer
- 2 votes139 views1 answer
- 0 vote188 views1 answer
- 0 vote136 views1 answer
- 0 vote140 views1 answer
- 0 vote135 views1 answer