unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Edit1: TEdit;
    Edit3: TEdit;
    Edit4: TEdit;
    Edit5: TEdit;
    Edit6: TEdit;
    Edit8: TEdit;
    Label1: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    Label6: TLabel;
    Label7: TLabel;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
i,ih,isz:integer;
ekl,ikl,penz:real;
begin
penz:=strtofloat(edit1.text);
ekl:=strtofloat(edit3.text);
ih:=strtoint(edit4.text);
isz:=strtoint(edit5.text);
ikl:=(12/ih)/100;
for i:=1 to isz do
begin
penz:=penz*(1+ikl);
end;
edit6.text:=floattostr(penz);
edit8.text:=floattostr(penz-strtofloat(edit1.text));
end;

end.
