answersLogoWhite

0

If your question refers to computer code, the idea is to check the remainder of a division. If the remainder, when you divide by 2, is 0, then the number is even. For example, in Java:

if (number % 2 = 0)
System.out.println("Your number is even.")
else
System.out.println("Your number is odd.")

Similar in C, except that the output command varies.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Math & Arithmetic