Question PSC-COND-0006
EasyWhat will be the output of the following pseudocode?
Integer a = 4, b = 9, c = 6
Integer big = a
if (b > big)
big = b
end if
if (c > big)
big = c
end if
Print big
- A.
19
- B.
6
- C.
Show answer and explanation
Answer: C
big starts at 4, becomes 9, and 6 isn't larger, so the maximum 9 is printed.