> 其他 >
用c语言编写:求方程ax2+bx+c=0的实数根.a,b,c由键盘输入,a≠0且b2-4ac>0;谢谢!
人气:146 ℃ 时间:2020-03-28 03:43:46
解答
#include
#include
main()
{
double a,b,c,x1,x2;
printf("Input a,b,c:\n");
scanf("%lf %lf %lf",&a,&b,&c);
{
if(a=0)
printf("Error!");
else
if(b*b-4*a*c
推荐
猜你喜欢
© 2026 79432.Com All Rights Reserved.
电脑版|手机版