BlueJ Programs

TAKE A NUMBER FROM USER AND CHECK IF ITS EVEN OR ODD


class EvenOdd // By Steve
{
public static void main(int a)
{
if(a%2==0)
System.out.println("Even");
else
System.out.println("Odd");
}
}


Input: 22435
































Input:77654















1 comment: