C语言求一元二次方程的实根和复数根,哪里错了?#include void main(){printf("input the a,b,c:\n");int a,b.c,D,E,F,x1,x2;scanf("%d,%d,%d",&a,&b,&c);D=b*b-4*a*cF=-b/2a;if(D>=0){E=sqrt D;x1=F+D/2a,x2=F-D/2a;printf("%f,%f",x1,x2);}elseE=sq
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/09 02:31:53
xNQ_`@5]9@E6]3%
6&qtRK+XP
6
(eܹ=3
qe9߿{5/X=A/R;)+
-t|WZGSvϔRwP7>
o=GBXl#1CM!^}6r