Question PSC-OPS-0078
HardWhat does the following pseudocode print?
Integer x = 10, y = 20
Boolean b = x == 10 and y == 20 or x == 0 and y == 0
Boolean c = x == 10 and (y == 20 or x == 0) and y == 0
Print b, c
- A.
true false
- B.
false false
- C.
Sign up free to see the answer and a step-by-step explanation.