Counter-Controlled Repetition with a while Loop

The for Repetition Structure a.k.a. the for loop

When Does the for Loop Initialize, Test and Modify ?

A for Loop That Counts to 10

We can count backwards

We can count by twos ... or 7ís, or whatever ...

The do while Repetitive Structure

Example of a do while Loop

The while Loop that Tested User Input

Personal Preference

The char Data Type


The getchar ( ) function

Example using getchar

The switch Multiple-Selection Structure