// odd or even
import java.io.*;
class ssvoe
{
public static void main(String arg[]) throws IOException
{
String s1;
int n1;
DataInputStream dr = new DataInputStream(System.in);
System.out.print("\nEnter the Number : ");
s1 = dr.readLine();
n1 = Integer.parseInt(s1);
if(n1 % 2 == 1)
System.out.println("\nThe Number is ODD");
else
System.out.println("\nThe Number is EVEN");
}
}In this program, easy to understand to check the given number is Odd or Even using Java Program.
