Question PSC-FUNC-0078
HardWhat is the output of this pseudocode?
Function ack(Integer m, Integer n)
if (m == 0) return n + 1 end if
if (n == 0) return ack(m - 1, 1) end if
return ack(m - 1, ack(m, n - 1))
End Function
Print ack(1, 5), ack(2, 3)
- A.
8 11
- B.
7 9
- C.
6 9
- D.
7 7
Sign up free to see the answer and a step-by-step explanation.