unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls;type TForm1 = class(TForm) Label1: TLabel; Label2: TLabel; Label3: TLabel; eA: TEdit; eB: TEdit; eC: TEdit; Label4: TLabel; eD: TEdit; lbl1: TLabel; eX1: TEdit; lbl2: TLabel; eX2: TEdit; btn1: TButton; procedure btn1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.btn1Click(Sender: TObject);var a, b, c, d: Double;begin a := StrToFloat(eA.Text); b := StrToFloat(eB.Text); c := StrToFloat(eC.Text); d := Sqr(b) - 4 * a * c; eD.Text := FloatToStr(d); if d >= 0 then begin eX1.Text := FloatToStr((-b - sqrt(d)) / 2 * a); eX2.Text := FloatToStr((-b + sqrt(d)) / 2 * a); end else ShowMessage('Корней нет');end;end.