By using for loop, enter 10 numbers and print the sum.
Answers
Answered by
1
Answer:
# python program
a = 0
for i in range(0, 10) :
x = int(input(f"enter the {i} num. : ") )
a += x
else:
print(" the sum is :", a)
Similar questions