News
It simply jumps out of the while loop statement and the program continues after the loop. Without this exit statement, the while would loop forever, because its test is still true. I hope you liked ...
#You can also use a while loop when you want to validate input; when you want to make sure the user has entered valid input for a prompt. Let’s say you want a function that asks a yes-or-no question.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results