Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Ackermann-function/Potion/ackermann-function.potion
Normal file
11
Task/Ackermann-function/Potion/ackermann-function.potion
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
ack = (m, n):
|
||||
if (m == 0): n + 1
|
||||
. elsif (n == 0): ack(m - 1, 1)
|
||||
. else: ack(m - 1, ack(m, n - 1)).
|
||||
.
|
||||
|
||||
4 times(m):
|
||||
7 times(n):
|
||||
ack(m, n) print
|
||||
" " print.
|
||||
"\n" print.
|
||||
Loading…
Add table
Add a link
Reference in a new issue