Data update

This commit is contained in:
Ingy döt Net 2024-07-13 15:19:22 -07:00
parent 29a5eea0d4
commit 5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions

View file

@ -0,0 +1,16 @@
function Ackermann(m,n: integer): integer;
begin
if (m < 0) or (n < 0) then
raise new System.ArgumentOutOfRangeException();
if m = 0 then
Result := n + 1
else if n = 0 then
Result := Ackermann(m - 1, 1)
else Result := Ackermann(m - 1, Ackermann(m, n - 1))
end;
begin
for var m := 0 to 3 do
for var n := 0 to 4 do
Println($'Ackermann({m}, {n}) = {Ackermann(m,n)}');
end.