Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int A(int m, int n) {
- if (m == 0) {
- return n + 1;
- }
- else if ((m > 0) && (n == 0)) {
- return A(m - 1, 1);
- }
- else if ((m > 0) && (n > 0)) {
- return A(m - 1, A(m, n - 1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement