June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -0,0 +1,21 @@
Public Function ackermann (m as Float, n as Float) as Float
If m = 0 then
return n + 1
end If
If n = 0 then
return ackermann(m - 1, 1)
end If
return ackermann(m - 1, ackermann(m, n - 1))
End
Public Sub Main()
Dim m, n as Float
For m = 0 to 3
For n = 0 to 4
print "Ackerman(";m;",";n;")=";ackermann(m, n)
Next
Next
End