Description
|
Program name
|
A while loop that counts up from 1 to 4
|
|
A for loop
that sums a series from 1 - 4.
|
|
A for loop
that sums a series from 5 to 1.
|
|
An example of a sentinel controlled loop
that sums a series of non-negative numbers
|
|
A problem solving example: writing a
number guessing game
|
|
Infinite loop: the loop control is never
updated
|
|
Infinite loop: the loop control is
updated but never brought closer to the stopping condition
|
|
A nested loop example: two counting for
loops, one inside of the other
|
|