Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Ackermann-function/PureBasic/ackermann-function.basic
Normal file
11
Task/Ackermann-function/PureBasic/ackermann-function.basic
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Procedure.q Ackermann(m, n)
|
||||
If m = 0
|
||||
ProcedureReturn n + 1
|
||||
ElseIf n = 0
|
||||
ProcedureReturn Ackermann(m - 1, 1)
|
||||
Else
|
||||
ProcedureReturn Ackermann(m - 1, Ackermann(m, n - 1))
|
||||
EndIf
|
||||
EndProcedure
|
||||
|
||||
Debug Ackermann(3,4)
|
||||
Loading…
Add table
Add a link
Reference in a new issue