/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
- 11 votes181 views6 answers
- 0 vote203 views1 answer
- 0 vote189 views2 answers
- 4 votes186 views4 answers
- 0 vote189 views1 answer
- 11 votes190 views6 answers
- 0 vote225 views1 answer
- 2 votes311 views1 answer
- 3 votes189 views1 answer
- 15 votes185 views1 answer