Loops Flashcards
1
Q
What are the 3 steps of using a loop?
A
- Initialize the loop control variable before entering the loop
- Provide a condition that controls the loop
- Alter the loop control variable within the loop, so that eventually the condition will become false, and the loop will exit
2
Q
Loops Slide 15
The loop control variable will move 1 step beyond your limit. The 4th count in this slide is a necessity.
A