Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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