procedure TForm1.Button32Click(Sender: TObject); {кнопка результат} begin Label8.Caption := IntToStr(SuperFactorial); end;
Function Factorial(y: integer): Longint; var Edit1: TEdit; begin y := StrToInt(Edit1.Text); if y = 0 then factorial := 1 else factorial := y*Factorial((y-1)); end;
Function SuperFactorial(y: integer): LongInt; var Edit4: TEdit; begin y := StrToInt(Edit4.Text); if y = 0 then SuperFactorial := 1 else SuperFactorial := Factorial(y)*SuperFactorial((y-1)); end;