解二次方程的程序 怎么输入都是无结果
#include <stdio.h>#include <math.h>
int main()
{
double a,b,c;//Do not forget add the ";"
printf("Please input three number\n");
scanf("%lf%lf%lf",&a,&b,&c);
if(b*b-4*a*c<0)
printf("No Result!\n");
else
printf("x1=%lf\nx2=%lf",(sqrt(b*b-4*a*c)-b)/(2*a),(sqrt(b*b-4*a*c)-b)/(2*a));
return 0;
}