if (num == 0) System.out.println ("num is zero"); else if (num%2 == 0) System.out.println ("num is even"); else System.out.println ("num is odd");