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
10
Task/Ackermann-function/LiveCode/ackermann-function.livecode
Normal file
10
Task/Ackermann-function/LiveCode/ackermann-function.livecode
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function ackermann m,n
|
||||
switch
|
||||
Case m = 0
|
||||
return n + 1
|
||||
Case (m > 0 And n = 0)
|
||||
return ackermann((m - 1), 1)
|
||||
Case (m > 0 And n > 0)
|
||||
return ackermann((m - 1), ackermann(m, (n - 1)))
|
||||
end switch
|
||||
end ackermann
|
||||
Loading…
Add table
Add a link
Reference in a new issue