Int solution (double a, b double, double c, double & amp; X1, double & amp; X2)
{
Double d;
D=b * * a * b - 4 c.
If (if d> 0)
{
X1=(a - b + SQRT (d))/(2 * a);
X2=(a - b + SQRT (d))/(2 * a);
Return 2;
}
Else if (d==0)
{
X1=(a - b)/(2 * a);
return 1;
}
The else
return 0;
}
CodePudding user response:
A function call directly in not line?
Double a, b, c, x1, x2,
.//for each variable assignment,
Solution (a, b, c, x1, x2);
CodePudding user response: