1 predict the output
a. int x = 10;
int y = 20;
if (x > y)
System.out.println("x is greater");
} else if (x == y) {
System.out.println("x is equal to y");
} else {
System.out.println("y is greater");
B int num = 15;
if (num > 10) {
if (num % 2 == 0) {
System.out.println("Even and greater than 10");
} else {
System.out.println("Odd and greater than 10");
} else {
System.out.println("Not greater than 10");
C int a = 5, b = 8;
String result = (a > b) ? "A is greater" : "B is greater";
System.out.println(result);
D for (int i = 1; i <= 5; i++) {
System.out.print(i + " ");
}
E int count = 0;
while (count < 5) {
System.out.print(count + " ");
count++;
F for (int i = 1; i < 10; i++) {
if (i == 5) {
break;
System.out.print(i + " ");
G for (int i = 1; i <= 5; i++) {
if (i == 3) {
continue;
System.out.print(i + " ");