#include
main()
//这个不是void
main么?
{
double
a,b,c;
printf("input
a,b,c:");
scanf("%lf%lf%lf",&a,&b,&c);
if
(a==0)
printf("Answer
is
%lf\n",-c/d);
//对啊你自己都说了没有定义d
else
if
(b*b-4*a*c!=0)
if
(b*b-4*a*c>0)
{printf("Answer
is
%lf\n",(-b+sqrt(b*b-4*a*c))/(2*a));
/*这个sqrt在stdio.h里有定义?前面应该加math.h吧???*/
printf("Answer
is
%lf\n",(-b-sqrt(b*b-4*a*c))/(2*a));
}
else
printf("No
answer\n");
else
printf("%lf\n",-b/(2*a));
}