摘要: #include<stdio.h> #include<math.h> //定义一元二次方程求根函数函数 void qiugen(float a,float b,float c){ float x,y; if(b*b<4*a*c) printf("该方程没有实根"); else if(b*b==4*a*c){ x=-b/(2*a); printf("该方程有一个根%.2f",x); } else { 阅读全文
posted @ 2019-09-13 17:38 狗狗王 阅读(593) 评论(0) 推荐(0)