looping

Looping / Iteration
toc Reference: chapter 7, CH

Write programs that repeatedly execute one or more statements

Loop till a condition remains true (condition changes dynamically)
 * WHILE loop - varied amount of repetition
 * DO-WHILE loop - execute once and check condition after
 * FOR loop - fixed number of repetition

Infinite loops - never stops

Coding Tasks:

 * 1) Display your name 10 times (using //WHILE//, using //FOR, using DO-WHILE//)
 * 2) Display numbers 1-10 using a looping command
 * 3) Input till user types 'Q'.
 * 4) loop if user wants to continue to play
 * 5) prompt to enter a guess, giving three chances.