Question PSC-FUNC-0015
HardWhat will be the output of the following pseudocode?
Function A(Integer m, Integer n)
if (m == 0)
return n + 1
end if
if (n == 0)
return A(m - 1, 1)
end if
return A(m - 1, A(m, n - 1))
End Function
Print A(2, 2)
- A.
4
- B.
5
- C.
6
- D.
7
Sign up free to see the answer and a step-by-step explanation.