new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
5
Task/Ackermann-function/Lua/ackermann-function.lua
Normal file
5
Task/Ackermann-function/Lua/ackermann-function.lua
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
function ack(M,N)
|
||||
if M == 0 then return N + 1 end
|
||||
if N == 0 then return ack(M-1,1) end
|
||||
return ack(M-1,ack(M, N-1))
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue