Didn't find out the problem,
# include "stdio.h"
# include "math. H"
Void main ()
{
Ge (double);
Double a, b, c, d;
A=2;
B=5;
C=2;
Ge (a, b, c);
}
Ge (double a, b double, double double c)
{
Double m;
M=(a - b + SQRT (* a * b * b - 4 c))/2 * a;
Return (m);
}
CodePudding user response:
Void main (){
double ge ();
Double a, b, c, d;
.
Red this sentence is what mean?
CodePudding user response:
See comments, for your reference:# include "stdio.h"
# include "math. H"
Void main ()
{
Ge (double a, b double, double double c);//function declarations must function to achieve consistent writing
Double a, b, c, d;
A=2;
B=5;
C=2;
D=ge (a, b, c);//function returns assigned to d
Printf (" % f \ n ", d);//output to see the results
}
Ge (double a, b double, double double c)//function to achieve
{
Double m;
M=(a - b + SQRT (* a * b * b - 4 c))/2 * a;
Return (m);
}