Question PSC-FUNC-0005
EasyWhat will be the output of the following pseudocode?
Function max(Integer a, Integer b)
if (a > b)
return a
end if
return b
End Function
Print max(max(3, 9), 5)
- A.
9
- B.
3
- C.
Show answer and explanation
Answer: A
max(3, 9) = 9, then max(9, 5) = 9.