Electrical and Computer Engineering
4 of 23
UAH
CPE 112
Loops Using the While Statement
•Count-controlled loop
–Executes a specified number of times
•Event-controlled loop
–Terminates when something changes the expression’s value