Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Ackermann-function/AutoHotkey/ackermann-function.ahk
Normal file
11
Task/Ackermann-function/AutoHotkey/ackermann-function.ahk
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
A(m, n) {
|
||||
If (m > 0) && (n = 0)
|
||||
Return A(m-1,1)
|
||||
Else If (m > 0) && (n > 0)
|
||||
Return A(m-1,A(m, n-1))
|
||||
Else If (m=0)
|
||||
Return n+1
|
||||
}
|
||||
|
||||
; Example:
|
||||
MsgBox, % "A(1,2) = " A(1,2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue