魅力微笑
幼苗
共回答了7个问题采纳率:71.4% 举报
#include
#include
void main()
{
float equal(float,float);
float lessthan(float,float,float);
float morethan(float,float,float);
float a,b,c,z;
printf("ax^2+bx+c=0 nplease input a,b,cn");
scanf("%f,%f,%f",&a,&b,&c);
if(a==0) //判断是否是一元二次方程
{ printf("error!");
printf("ax^2+bx+c=0nplease input a,b,cn");
scanf("%f,%f,%f",&a,&b,&c);}
z = b*b-4*a*c;
if(fabs(z)0)
morethan(a,b,z);
if(z
1年前
3