import java.util.Scanner;
public class IfTest01 {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
System.out.println(" Please enter an integer !");
int number = sc.nextInt();
if(number % 2 == 0){
System.out.println(number+" even numbers ");
}else{
System.out.println(number+" Odd number ");
}
}
}
demo>java IfTest01.java
Please enter an integer !
129
129 Odd number