Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
5
Task/Ackermann-function/Lua/ackermann-function-1.lua
Normal file
5
Task/Ackermann-function/Lua/ackermann-function-1.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