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

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
ReneRene
Change my mind. I dare you.
Chat with Rene
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga

Add your answer:

Earn +20 pts
Q: Check no is even or odd is wrtten usig function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic