What is a counter loop?
A counter loop:
- Runs an incremental counter
- Continues looping until the value of the counter
reaches or exceeds a pre-specified limit
The counter may increment by a
value of one or by a value of more than one, but:
It increments by the same
amount each time it increments.
This lesson illustrates:
- The use of a while loop to implement a counter
use of a for loop to implement a counter loop