I am a first time C++ programmer. This simple program is getting an error:

expected primary-expression before ‘=’ token

return = result;

The code follows:

// Solve Quadratic equation

float Quadratic (float A,

float B,

float C)

{

float Sol1;

float Sol2;

float Disc;

float result;

if (A==0)

{

result = -B/C;

if (C==0)

result = 0;

}

else

{

Disc = B*B - 4* A *C;
Sol1 = (-B + sqrt (Disc))/(2*A);

Sol2 = (-B - sqrt (Disc))/(2

*A);*

if (abs (Sol1) < abs (Sol2))

result = Sol1;

else

result = Sol2;

}

return = result;

} /Quadratic */

if (abs (Sol1) < abs (Sol2))

result = Sol1;

else

result = Sol2;

}

return = result;

} /