What if we want the
for loop to log
1, and then
0? With simple modifications to the expressions, we can make our loop run backward!
To run a backward
for loop, we must:
for loop that loops backwards printing
0 to the console. Use the
>= comparison operator in your stopping condition and the
-- operator in your iteration statement.