Computer Science, asked by iqratariq4566, 5 months ago

write a program to add number untill the user enter zero using while loop​

Answers

Answered by ujjwal99355
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