> 其他 >
用c语言编写”求一元二次方程的根”的程序
人气:102 ℃ 时间:2020-02-03 10:40:12
解答
#include "stdio.h" #include "math.h" double x1,x2,p; float file1(float a,float b) { x1=(-b+sqrt(p))/2*a; x2=(-b-sqrt(p))/2*a; return 0; } float file2(float a,float b) { x1=x2=(-b+sqrt(p))/2*a; return ...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版