/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 vote101 views2 answers
- 3 votes93 views1 answer
- 0 vote100 views1 answer
- 0 vote149 views1 answer
- 0 vote135 views1 answer
- 0 vote109 views1 answer
- 22 votes113 views2 answers
- 1 vote108 views1 answer
- 0 vote108 views1 answer
- 1 vote119 views1 answer