#include stdio.h#include math.hvoid root(double a,double b,double c){double d=b*b-4*a*c;if (a=0){printf(这不是一元二次方程! );} else {if (d>0){printf(X1=%.2lf , (-b+sqrt(d))/(2*a)); printf(X2=%.2lf , (-b-sqrt...
feelings_wh
关注 1 |粉丝 0
2
回答
0
问题
0
文章
0
财富
该作者还未设置个人签名
#include stdio.h#include math.hvoid root(double a,double b,double c){double d=b*b-4*a*c;if (a=0){printf(这不是一元二次方程! );} else {if (d>0){printf(X1=%.2lf , (-b+sqrt(d))/(2*a)); printf(X2=%.2lf , (-b-sqrt...