Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Ackermann-function/ALGOL-60/ackermann-function.alg
Normal file
12
Task/Ackermann-function/ALGOL-60/ackermann-function.alg
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
begin
|
||||
integer procedure ackermann(m,n);value m,n;integer m,n;
|
||||
ackermann:=if m=0 then n+1
|
||||
else if n=0 then ackermann(m-1,1)
|
||||
else ackermann(m-1,ackermann(m,n-1));
|
||||
integer m,n;
|
||||
for m:=0 step 1 until 3 do begin
|
||||
for n:=0 step 1 until 6 do
|
||||
outinteger(1,ackermann(m,n));
|
||||
outstring(1,"\n")
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue