• + 1 comment

    If you write n % 2 == 0, you check if the remainder equals 0. When you write n % 2 != 0, you check if the remainder does not equal zero.