Lab 4: Introduction to Selection and Repetition
Objectives
- To learn about selective execution, in particular,
the
if
statement.
- To practice writing
if
statements.
- To learn about repetitive execution, in particular,
for
and while
statements.
- To practice using
for
and while
loops.
Textbook Reference
- Chapter 5: Control Structures
The Lab Exercise
Notes to the Instructor
Report errors to Larry Nyhoff (nyhl@cs.calvin.edu)