#include #include void main() { float a,b,c,m,n,x1,x2; sc#include#includevoid main(){float a,b,c,m,n,x1,x2;scanf("%f,%f,%f",&a,&b,&c);m=b*b-4*a*c;n=sqrt(m);x1=(b+n)/(2*a);x2=(b-n)/(2*a);if (m>=o)printf ("a=%f,b=%f,c=%f,m=%f,n=%f,x1=%f,x2=%f\n",a,b,c,

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 12:31:53
#include #include void main() { float a,b,c,m,n,x1,x2; sc#include#includevoid main(){float a,b,c,m,n,x1,x2;scanf(=o)printf ("a=%f,b=%f,c=%f,m=%f,n=%f,x1=%f,x2=%f\n",a,b,c," />
xSn@Un /b; !aCTH(@5HE}H73{1ѱڨT:9 ăO" XdjDAhLM!kX6qz}~ԗϵII]5Âi{UհWIsIt$_%R!;=3EYI*PЭ`OD9|iz𼰀5g\_]9CnM.ͫyl07rej_ȅ*9 ĺ?ByvP=D[$OsΑaedT{y[L.=rSZ%=*ah֚w5Dڐ/t\/r@,2:9ڹb*oWn`?x ˳zkOBq뚖&ع!#-t0kNѥ6-"<SaLcEY}ӅN" ͻn,AEWP&P& ?́Ւ?7huhS]w vܦ_>;ed\5Ω ?

#include #include void main() { float a,b,c,m,n,x1,x2; sc#include#includevoid main(){float a,b,c,m,n,x1,x2;scanf("%f,%f,%f",&a,&b,&c);m=b*b-4*a*c;n=sqrt(m);x1=(b+n)/(2*a);x2=(b-n)/(2*a);if (m>=o)printf ("a=%f,b=%f,c=%f,m=%f,n=%f,x1=%f,x2=%f\n",a,b,c,
#include #include void main() { float a,b,c,m,n,x1,x2; sc
#include
#include
void main()
{
float a,b,c,m,n,x1,x2;
scanf("%f,%f,%f",&a,&b,&c);
m=b*b-4*a*c;
n=sqrt(m);
x1=(b+n)/(2*a);
x2=(b-n)/(2*a);
if (m>=o)
printf ("a=%f,b=%f,c=%f,m=%f,n=%f,x1=%f,x2=%f\n",a,b,c,m,n);
else (m=

#include #include void main() { float a,b,c,m,n,x1,x2; sc#include#includevoid main(){float a,b,c,m,n,x1,x2;scanf("%f,%f,%f",&a,&b,&c);m=b*b-4*a*c;n=sqrt(m);x1=(b+n)/(2*a);x2=(b-n)/(2*a);if (m>=o)printf ("a=%f,b=%f,c=%f,m=%f,n=%f,x1=%f,x2=%f\n",a,b,c,
楼主 是新手吧 写的代码不怎么规范,以后避免用啊,ab,c做变量 你的程序要做什么我也不太明白就给你改了下错,以后改进下 继续加油
#include
#include
void main()
{
float a,b,c,m,n,x1,x2;
scanf("%f%f%f",&a,&b,&c);//输入一般不加其他符号不然输入不方便
m=b*b-4*a*c;
n=sqrt(m);
x1=(b+n)/(2*a);
x2=(b-n)/(2*a);
if (m>=0)//应该是大于0吧,你写的是O
/*加这个大括号很有必要不要省了*/
{
printf ("a=%f,b=%f,c=%f,m=%f,n=%f,x1=%f,x2=%f\n",a,b,c,m,n);
}
else
{
printf ("此方程无实数解\n");
}
}