For Loops using Modulus %

What if we wanted to count backwards to 0? We can do a for loop for this as well! Simply reverse the sequence.

We can also add the ability to print only evens as well. We need to use a modulous to check if it has a remainder. If we divide our number by 2 and it has a remainder, we will skip it.

To get odd numbers, check with 1 vs 0.