C语言编程问题
C语言编程问题
日期:2006-03-04 14:47:48 人气:1
#include
main()
{float a,b,c,d,disc,x1,x2,realpart,imagpart;
scanf("%f,%f,%f",&a,&b,&c);
printf("The equation");
if(fabs(a)<=le-6)
printf("is not a quadratic");
else
{disc=b*b-4*a*c;
if(fabs(disc)<=le