import java.util.Scanner;
public class Even_Odd_Number {
public static void main(String[] args) {
int x;
System.out.println("Enter the Number:");
Scanner s=new Scanner(System.in);
x=s.nextInt();
if (x%2==0)
System.out.println("Number is Even");
else
System.out.println("Number is Odd");
}
}
No comments:
Post a Comment