Electrical and Computer Engineering
20
of 23
UAH
CPE 112
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.
•