#include<math.h> //调用了数学函数sqrt
int main()
{double a,b,c,disc,x1,x2,p,q; //disc是判别式bb-4ac
scanf("%1f%1f%1f",&a,&b,&c); //输入双精度浮点型变量的值要用格式声明“%1f”
disc=bb-4ac;
if(disc<0) //若 bb-4ac<0
printf(" this equation hasn't real roots\n"); //输出“此方程无实根 ”
else //若 b*b-4*a*c>0
{p=-b/(2.0a);
q=sqrt(disc)/(2.0*a);
x1=p+q;
x2=p-q; //求出方程的两个根
printf("real roots:\nx1=%7.2f\nx2=%7.2f\n",x1,x2); //输出方程的两个根
}
return 0;
}