Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ack(m, n):
- if m == 0:
- return n + 1
- if n == 0:
- return ack(m - 1, 1)
- else:
- return ack(m - 1, ack(m, n - 1))
- print(ack(4, 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement