Ackermann’s function A(m, n) is defined for m ≥ 0 and n ≥ 0 as
A(0, n) = N + 1 for n ≥ 0,
A(m, 0) = A(m − 1, 1) for m ≥ 1,
A(m, n) = A(m − 1, A(m, n − 1)) for m ≥ 1, n ≥ 1.
Write a recursive procedure to compute this function. Your main program should handle
the user interface to request m and n and display the final result.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here