Answer:
The complete "if statement" is given below;
<u>1st Method:</u>
<u>using if else statement</u>
If (amount1>10 && amount2<100)
{
If(amount1>amount2)
system.out.println(amount1);
}
else
{
system.out.println(amount2);
}
}
<u>2nd Method:</u>
<u>using conditional statement</u>
if(amount1 > 10 && amount2 < 100)
{
System.out.println(amount1 > amount2 ? amount1 : amount2);
\\conditional statement shows if amount1 is greater than amount2 it means the statement is true so it will show the true value i.e. amount1. But if amount1 is less than amount2 then the statement is false so it will show the false value i.e. amount2
}
<u></u>