Saved Bookmarks
| 1. |
Write a while program to keep on entering the number until the user do not enter zero... This is a python program.. |
|
Answer» ong>Answer: while true: var = int(INPUT("Enter some number: ")) if var != 0: continue else: break Explanation: here var is the input, now if the input is not equal to ZERO then it will continue and if it is equal to 0 then it will PRINT Done! and exit OUTPUT Enter some number: 32 Enter some number: 0 Done! |
|