Situation:
You want to a program to keep doing something until (or while) something happens.
Actions:
Use a flag to remember whether something happened. Use a Do-Loop
to test the flag.
Explanation:
Example: loop until user enters valid data.
You want to a program to keep doing something until (or while) something happens.
Use a flag to remember whether something happened. Use a Do-Loop
to test the flag.
Example: loop until user enters valid data.