{
public static void main(String args[])
{
int num1 = 10;
int num2 = 15;
if(num1 > num2)
{
System.out.println("Number1 having value " + num1 + " is greater than number2 having value " + num2);
}
else
{
System.out.println("Number2 having value " + num2 + " is greater than number1 having value " + num1);
}
}
}
Output
Number2 having value 15 is greater than number1 having value 10