Practice with while loops design - solve the simpler problem first! Ignore the Color changes till solve without it.



  1. Write down and draw a picture of WHAT you see first. Describe WHAT you see. Then figure out the HOW.

  2. What things have to happen in the while loop initialization?

  3. What things have to happen in the while loop body?

  4. How many times does the while loop body get executed?