Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.2.0 / tests / webtbs / tw9919.pp
Size: Mime:
{$mode objfpc}

type
  TForm1 = class
    function crash(n:integer):real;
  end;

function TForm1.crash(n:integer):real;
begin
  case n of
  0: Result:=0;
  1..100: Result:=crash(n-1)+crash(n-1);
  end;
end;

var
  f : TForm1;

begin
  f:=TForm1.create;
  writeln(f.crash(15));
  f.Free;
end.