Advertisement
olaaa

Untitled

Dec 1st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. int A(int m, int n) {
  2. if (m == 0) {
  3. return n + 1;
  4. }
  5. else if ((m > 0) && (n == 0)) {
  6. return A(m - 1, 1);
  7. }
  8. else if ((m > 0) && (n > 0)) {
  9. return A(m - 1, A(m, n - 1));
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement