aboutsummaryrefslogtreecommitdiff
path: root/comparison/Python/ack3-11.py
blob: 3e831acd6356247d2367e630ff3fcda78d22044b (plain) (blame)
1
2
3
4
5
6
7
8
9
def ack(m,n):
    if m==0:
        return n+1
    elif n==0:
        return ack(m-1, 1)
    else:
        return ack(m-1, ack(m, n-1))

print(ack(3,11))