Program doza;
var a,b,c,x1,x2,d:real;
begin
writeln ('a,b,c');
readln (a,b,c);
d:=b*b-4*a*c;
if (d>0) then writeln ('2 корня');
x1:=-b+sqrt (d);
x2:=-b-sqrt (d);
writeln ('x1=',x1);
writeln ('x2=',x2);
end;
begin
if (d=0) then writeln ('1 корень');
x1:=-b/2*a
end.
var a,b,c,x1,x2,d:real;
begin
writeln ('a,b,c');
readln (a,b,c);
d:=b*b-4*a*c;
if (d>0) then writeln ('2 корня');
x1:=-b+sqrt (d);
x2:=-b-sqrt (d);
writeln ('x1=',x1);
writeln ('x2=',x2);
end;
begin
if (d=0) then writeln ('1 корень');
x1:=-b/2*a
end.