#include <stdio.h>
#include <math.h>
void main()
{float a,b,c;
scanf("%f%f%f",a,b,c);
if(b*b-4*a*c<0)
printf("无实根\n");
if(b*b-4*a*c==0)
printf("%.4f\n%.4f\n",-b/2*a,-b/-2*a);
if(b*b-4*a*c>0)
printf("%.4f\n%.4f\n",(-b+sqrt(b*b-4*a*c))/2*a,(-b-sqrt(b*b-4*a*c))/2*a);
}
这是我编写的程序,但是运行出来结果无求大神帮忙看下咋回事