The program checks if a number is odd or even by using the modulo operator to check if dividing a number by 2 has a remainder. If there is no remainder, the number is even and it prints 'Number Is Even', otherwise it prints 'Number Is Odd'.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
17 views1 page
Even Odd
The program checks if a number is odd or even by using the modulo operator to check if dividing a number by 2 has a remainder. If there is no remainder, the number is even and it prints 'Number Is Even', otherwise it prints 'Number Is Odd'.