Java program to find odd or even
This java program finds if a number is odd or even. If the number is divisible by 2 then it will be even, otherwise it is odd. We use modulus operator to find remainder in our program.
Java programming source code
Download Odd or even program class file.
Output of program:
Another method to check odd or even, for explanation see: c program to check odd or even. Code:
There are other methods for checking odd/even one such method is using bitwise operator.
ConversionConversion EmoticonEmoticon