Beruflich Dokumente
Kultur Dokumente
INTERFACE
SEMESTER GENAP 2016/2017
Tugas I
DISUSUN OLEH:
FADHILAH RAHMAN
321 15060
2C D3 TEKNIK LISTRIK
unit Unit1;
interface
uses
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Button1: TButton;
Button2: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
var
jumlah,harga,hasil:real;
begin
harga := strtofloat(edit2.Text);
jumlah:= strtofloat(edit3.Text);
hasil:= harga*jumlah;
edit4.Text:= floattostr(hasil)
end;
begin
close;
end;
end.
HASIL PROGRAM