While Loops
In this lab, we expect you to get familar with while loops.Here is what you need to learn:
- The three basic steps of proper loop operation:
- Initialize: setting up loop control variables to proper initial conditions
- Compare: forming correct Boolean expressions to control loops
- Update: changing loop control variables during loop execution so the loop can end
- Using counter-controlled while loops
- Using event-controlled while loops
- Using EOF loops