Question PSC-FUNC-0067
HardWhat does the following pseudocode print?
Function mystery(Integer n)
if (n < 10)
return n
end if
return mystery(n / 10) * 10 + 0 * (n mod 10) + (n mod 10)
End Function
Print mystery(4096) + 4
- A.
6904
- B.
4096
- C.
Sign up free to see the answer and a step-by-step explanation.