> 其他 >
用C++写程序:求方程ax^2+bx+c=0的根,用3个函数分别求当b^2-4ac大于0,等于0和小于0时的根,并输出结果
从主函数输入a,b,c的值
人气:228 ℃ 时间:2020-02-06 07:45:53
解答
#include \x09#include \x09using namespace std;\x09float x1,x2,disc,p,q;\x09int main()\x09{void greater_than_zero(float,float);\x09 void equal_to_zero(float,float); \x09 void smaller_than_zero(float,fl...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版