I want to make this code shorter but still perform the same way.
Code:Scanner input = new Scanner(System.in);
System.out.print("Enter first number: ");
if (input.nextInt() > var3) {
System.out.print("Enter second number: ");
int num2 = input.nextInt();
System.out.println("First is greater");
if (num2 < var3)
System.out.println("Second is Less than");
else
System.out.println("Second is Greater or equal");
} else {
System.out.print("Enter second number: ");
int num2 = input.nextInt();
System.out.println("First is Less than or equal");
if (num2 < var3)
System.out.println("Second is Less than");
else
System.out.println("Second is Greater or equal");
}

