/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
- 2 votes104 views1 answer
- 6 votes106 views2 answers
- 1 vote77 views1 answer
- 0 vote84 views1 answer
- 12 votes85 views6 answers
- 0 vote82 views1 answer
- 3 votes84 views3 answers
- 0 vote84 views1 answer
- 1 vote94 views1 answer
- 0 vote98 views1 answer