import java.util.*;
public class Pgm1
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.print("Input the first number : ");
int x = in.nextInt();
System.out.print("Input the second number: ");
int y = in.nextInt();
if(x > y)
{
System.out.print("X is Greater:"+x);
}
else
{
System.out.print("Y is Greater:"+y);
}
}
}
0 Comments