Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
12
Task/Sudan-function/PascalABC.NET/sudan-function.pas
Normal file
12
Task/Sudan-function/PascalABC.NET/sudan-function.pas
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function F(n,x,y: integer): integer;
|
||||
begin
|
||||
if n = 0 then
|
||||
Result := x + y
|
||||
else if y = 0 then
|
||||
Result := x
|
||||
else Result := F(n - 1, F(n, x, y - 1), F(n, x, y - 1) + y);
|
||||
end;
|
||||
|
||||
begin
|
||||
F(1,3,3).Println;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue