What are the two types of loops
Counter-controlled repetition
Sentinel-controlled repetition
Counter-controlled repetition
Repetition exits after running a certain number of times
What does a counter-controlled repetition consist of
Control variable that acts as a counter
Control variable needs to be initialised before running the loop
Control variable should be modified each time through loop
The loop-continuation-condition determines if looping should continue.
Sentinel-controlled repetition
Loop that runs based on a sentinel/signal value which decides when to exit the loop.