/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 vote170 views1 answer
- 0 vote146 views1 answer
- 3 votes215 views2 answers
- 0 vote187 views1 answer
- 1 vote153 views2 answers
- 0 vote150 views2 answers
- 1 vote157 views2 answers
- 0 vote168 views1 answer
- 2 votes147 views3 answers
- 5 votes161 views3 answers