var i, k, R: Cardinal; begin k := StrToInt(Edit1.Text); R := k; for i := 1 to k do R := R * (k + i) Edit2.Text := IntToStr(R); end;