Lab 4: Introduction to Selection and Repetition


  1. To learn about selective execution, in particular, the if statement.
  2. To practice writing if statements.
  3. To learn about repetitive execution, in particular, for and while statements.
  4. To practice using for and while loops.

Textbook Reference

The Lab Exercise

Notes to the Instructor

Report errors to Larry Nyhoff (