Print "1" if x
is equal to y
, print "2" if x
is greater than y
, otherwise print "3".
int x = 50;
int y = 50;
@(2) (x @(2) y) {
System.out.println("1");
} @(7) (x > y) {
System.out.println("2");
} @(4) {
System.out.println("3");
}
int x = 50;
int y = 50;
if (x == y) {
System.out.println("1");
} else if (x > y) {
System.out.println("2");
} else {
System.out.println("3");
}