procedure TForm1.Button5Click(Sender: TObject);
begin
close;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
sayi1,sayi2,sonuc:integer;
begin
label3.Caption := 'Toplam';
sayi1:=strtoint(edit1.Text);
sayi2:=strtoint(edit2.Text);
sonuc:=sayi1+sayi2;
edit3.Text := inttostr(sonuc);
end;
procedure TForm1.Button2Click(Sender: TObject);
var
sayi1,sayi2,sonuc:integer;
begin
sayi1:=strtoint(edit1.Text);
sayi2:=strtoint(edit2.Text);
sonuc:=sayi1-sayi2;
edit3.Text := inttostr(sonuc);
label3.Caption := 'Fark';
end;
procedure TForm1.Button3Click(Sender: TObject);
var
sayi1,sayi2,sonuc:integer;
begin
sayi1:=strtoint(edit1.Text );
sayi2:=strtoint(edit2.Text );
sonuc:=sayi1 * sayi2;
edit3.Text := inttostr(sonuc);
label3.Caption :='Çarpım';
end;
procedure TForm1.Button4Click(Sender: TObject);
var
sayi1,sayi2:integer;
sonuc:real;
begin
sayi1:=strtoint(edit1.Text );
sayi2:=strtoint(edit2.Text );
sonuc:=(sayi1)/(sayi2);
edit3.Text :=floattostr(sonuc);
label3.Caption := 'Bölüm';
end;
procedure TForm1.Button6Click(Sender: TObject);
begin
edit1.Text := '';
edit2.Text := '';
edit3.Text := '';
label3.Caption := 'Sonuç';
end;
end.
nazım demir
demirnazim@hotmail.com