Flag-Controlled Loops
•
A flag is a Boolean variable that is used to control
the logical flow of a program.
•
We can use the Boolean variable to record
whether or not the event that controls the process
has occurred.