Quadratic equation solver in C++ // ConsoleApplication1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main() {
    system("cls");
    system("color 5");

    float a;
    float b;
    float c;
    float Sector1Arithmetic;
    float Sector2Arithmetic;
    float Sector3Arithmetic;
    float Sector4Arithmetic;
    float Sector5Arithmetic;
    float X1;
    float X2;

    cout &lt;&lt; endl;
    cout &lt;&lt; "            Quadratic Equation Solver";
    cout &lt;&lt; endl;
    cout &lt;&lt; endl;
    cout &lt;&lt; "       Enter the value of the a co-efficient ---&gt; ";
    cin &gt;&gt; a;
    cout &lt;&lt; endl;
    cout &lt;&lt; endl;
    cout &lt;&lt; "       Enter the value of the b co-efficient ---&gt; ";
    cin &gt;&gt; b;
    cout &lt;&lt; endl;
    cout &lt;&lt; endl;
    cout &lt;&lt; "       Enter the value of the c co-efficient ---&gt; ";
    cin &gt;&gt; c;
    cout &lt;&lt; endl;

    Sector1Arithmetic = b * -1;
    Sector2Arithmetic = b * b - 4 * a * c;
    Sector3Arithmetic = sqrt(Sector2Arithmetic);
    Sector4Arithmetic = Sector1Arithmetic + Sector3Arithmetic;
    Sector5Arithmetic = Sector1Arithmetic - Sector3Arithmetic;
    X1 = Sector4Arithmetic / 2 * a;
    X2 = Sector5Arithmetic / 2 * a;

    cout &lt;&lt; "  For the equation " &lt;&lt; a &lt;&lt; "x^2 + " &lt;&lt; b &lt;&lt; "x + " &lt;&lt; c &lt;&lt;     endl;
    cout &lt;&lt; endl;
    cout &lt;&lt; "  X=" &lt;&lt; X1 &lt;&lt; " OR " &lt;&lt; "X=" &lt;&lt; X2 &lt;&lt; endl;

    if ((-4 * a * c) &gt;= (b * b) || (a == 0) || (b == 0) || (c == 0)) {
    cout &lt;&lt; endl;
    cout &lt;&lt; "An error might have occurred due to impractical math calculations" &lt;&lt; endl;
    cout &lt;&lt; "OR due to invalid values inputted such as 0" &lt;&lt; endl;
    cout &lt;&lt; endl;
    }

    cout &lt;&lt; endl;
    system("pause");
    main();
    return 0;

}


As you may remember I also posted a quadratic equation solver in Python as well. The main reason I post this simple program is to get critical feedback and perhaps look for alternative ways of coding such simple program applying it to my future projects.
You have committed a grave error here with operator precedence, which should have easily been caught with simple testing:

X1 = Sector4Arithmetic / 2 * a;


The variable names SectornArithmetic are bizarre.  Most of those intermediate results don't need to be assigned to a variable.  The most complex intermediate result, b * b - 4 * a * c, has a standard name: "discriminant", which you should use.

You can use if (discriminant &lt; 0) to detect that there are no real roots.  The other tests — (b == 0) and (c == 0) — are superfluous and harmful, as there is no justification for prohibiting those coefficients from being 0.

As mentioned in the previous Python review, system("pause") is inappropriate.  Just call std::getline() and discard the result.

Calling main() recursively is worse than a goto, as you are deepening the call stack for no reason.  Write a proper loop instead.  Furthermore, the return 0; statement is unreachable and should be eliminated.