write a program to add number untill the user enter zero using while loop
Answers
Answered by
1
Answer:
num=float(input('Input Number to be added:'))
a=0
while num!=0:
a=a+num
num=float(input('Input Number to be added:'))
print('Sum of all the numbers added=',a)
Output:
Attachments:
Similar questions