#include<stdio.h>
int main()
{double a,b,c,disc,x1,x2,p,q;
scanf("%lf%lf%lf",&a,&b,&c);
disc=b*b-4*a*c;
p=-b/(2.0*a);
q=sqrt(disc)/(2.0*a);
x1=p+q;x2=p-q;
printf("x1=%7.2f\nx2=%7.2f\n",x1,x2);
return 0;
}

例3.5

相关文章:

  • 2022-01-24
  • 2022-12-23
  • 2021-12-02
  • 2021-12-30
  • 2021-06-16
  • 2021-10-07
  • 2021-12-18
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-08-03
相关资源
相似解决方案