Что выведет код?
#Tasks
public class Task050825 {
public static void main(String[] args) {
int x = 5;
if (x > 10)
if (x < 20)
System.out.println("A");
else
System.out.println("B");
else if (x > 2)
if (x < 8)
System.out.println("C");
else
System.out.println("D");
else
System.out.println("E");
}
}
#Tasks
🗿5👍2
Что выведет код?
#Tasks
public class Task060825 {
public static void main(String[] args) {
int x = 1;
int y = 2;
if (++x > y++ ? x++ < --y : y-- > ++x) {
System.out.println("A: x=" + x + " y=" + y);
} else {
System.out.println("B: x=" + x + " y=" + y);
}
}
}
#Tasks
🤯1