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» Answer: while true: var = int(INPUT("ENTER some number: ")) if var != 0: continue else: exit("Done!") 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! |
|