#include<stdio.h>
#include <math.h>
int main()
{
while(1)
{
float a,b,c,x1,x2;
printf("请输入a,b,c\n");
scanf("%f%f%f",&a,&b,&c);
x1=(-b+sqrt(b*b-4*a*c))/2/a;x2=(-b-sqrt(b*b-4*a*c))/2/a;
if (b*b-4*a*c>0)
printf("x1=%f,x2=%f\n",x1,x2);
else if (b*b-4*a*c==0)
printf("x1=x2=%f\n",x1);
else
printf("无解\n");
}
return 0;
}