14: Test Before Loops
( \newcommand{\kernel}{\mathrm{null}\,}\)
- 14.1: Increment and Decrement Operators
- The idea of increment or decrement is to either add or subtract 1 from a variable that is usually acting as a flag.
- 14.2: While Loop
- The concept of iteration is connected to possibly wanting to repeat an action. Like all control structures we ask a question to control the execution of the loop. The term loop comes from the circular looping motion that occurs when using flowcharting.