Print whether the number is odd or even

01/01/2002 08:17

 

public class oddeven
{
public static void main(String args[])
{
int a=53;
if(a%2==0)
System.out.println("the number is even");
else
System.out.println("the number is odd");
}
}