Is it possible to count down by an amount other than one?
Sure. The loop control variable could be decremented by any integer amount.
Here is some code that illustrates changing the loop control variable by an amount other than one.
Notice each iteration of the loop subtracts
a positive value (called decrement
) from
the loop control variable.
Could you do exactly the same thing by adding a negative value to the loop control variable?