int n = 7;
if (n < 0 || n > 10) {
System.out.println("out");
} else {
System.out.println("in");
}What is printed?
- A
out
- B
nothing
- Ccheck_circle
in
- D
out in
Explanation
n = 7 is not less than 0, and not greater than 10. Both parts of the || are false, so the else branch prints "in".