/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 vote189 views1 answer
- 23 votes180 views4 answers
- 6 votes234 views1 answer
- 1 vote174 views1 answer
- 3 votes189 views2 answers
- 1 vote201 views1 answer
- 0 vote218 views3 answers
- 16 votes194 views3 answers
- 0 vote221 views1 answer
- 1 vote184 views1 answer