Home > Back-end >  The great god help to see where is wrong
The great god help to see where is wrong

Time:10-21

#include
using namespace std;
Int main ()
{
Float a, b, c, x1, x2, d, e, f, g;
Cin> a> b> c;
D=b * * a * b - 4 c.
If (d<0)
{
Cout<" No answer!" ;
}
If (d==0)
{
E=SQRT (d);
X1=(a - b + e)/2/a.
X2=(a - b - e)/2/a.
Cout<" The x1 x2=="; Cout. Setf (ios: : fixed); Cout}
If (d> 0)
{
E=SQRT (d);
X1=(a - b + e)/2/a.
X2=(a - b - e)/2/a.
If (a> 0 {f=x1; G=the x2; X2=f; X1=g; Cout<" X1="; Cout. Setf (ios: : fixed); Cout CodePudding user response:

1058 informatics orsay

CodePudding user response:

Give a compiler

CodePudding user response:

Don't look, probably know the quadratic equation solution is to
Division does not take into account when the divisor is 0, the x1=(a - b + e)/2/a.//what to write so x1=a * (a - b + e)/2 is not good?
  • Related