Question PSC-COND-0076
HardWhat is the output of this pseudocode?
Integer age = 17, hasId = 1, withParent = 0
if (age >= 18 and hasId == 1)
Print "enter"
else if (age >= 16 and withParent == 1)
Print "enter with parent"
else
Print "denied"
end if
- A.
denied
- B.
enter
- C.
Sign up free to see the answer and a step-by-step explanation.