Colour Theme Font Size Options
 
 
 
CS110 Lab 6

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:
    1. Initialize: setting up loop control variables to proper initial conditions
    2. Compare: forming correct Boolean expressions to control loops
    3. 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