Question PSC-COND-0075
HardWhat will be the output of the following pseudocode?
Integer p = 1, q = 0, r = 1
if (p and q or r)
Print "A"
end if
if (p and (q or r))
Print "B"
end if
if (not p or q and r)
Print "C"
end if
- A.
B
- B.
A
- C.
Sign up free to see the answer and a step-by-step explanation.