Well here is the script, i'll be grateful if you help me :
SCAR Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
Label2: TLabel;
Edit2: TEdit;
Button1: TButton;
Label3: TLabel;
Label4: TLabel;
procedure DoMath;
private
public
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure DoMath(Sender: TObject);
var
i, c,hl, hs: Integer;
begin
hs:=StrToInt(TForm.Edit2);
hl:=StrToInt(TForm.Edit1);
c:=hs-90/99;
i:=hs/c/120+2/4*hl-72;
Label4.Caption:=IntToStr(i)+'%';
end;
end.
Thanks!