➽ Program:-

import java.util.*;

import java.io.*;

class Main

{

    public static void main(String args[])

    {

       int number;

       Scanner sc = new Scanner(System.in);

       System.out.print("Enter a Number: ");

 

       number = sc.nextInt();

 

       if(number % 2 == 0)

          System.out.print(number + " is an even number");

       else

          System.out.print(number + " is an odd number");

    }

}

➽ Output:-

Enter a Number: 50
50 is an even number

Enter a Number: 99
99 is an odd number