filmov
tv
Java Programming: Print EVEN Numbers from 0 to 20 using a For Loop and If Statement: Tutorial

Показать описание
Using a For loop and an if statement, I print even numbers from 0 to 20. A condition controls the output. Modulus is used for this operation. Modulus is similar to division, the only difference is that it outputs the remainder in the division operation. If the remainder is 0, then the number is even and is printed.