public class HelpMeGod{ public static void main(String [] args)throws IOException{ DataInputStream k = new DataInputStream(System.in); System.out.print("Enter any number: "); int num = Integer.parseInt(k.readLine()); if (num == 0){ System.out.println("The no. 0 is neither Even nor Odd"); } else if ((num%2) == 0){ System.out.println("The no. " + num + " is Even"); } else{ System.out.println("The no. " + num + " is Odd"); } } }