Question: how to solve quadratic equations in c++ programing?
Answer: For a quadratic equation ax2+bx+c = 0 (where a, b and c are coefficients), it's roots is given by following the formula. The term b2-4ac is known as the discriminant of a quadratic equation. The discriminant tells the nature of the roots. If discriminant is greater than 0, the roots are real and different.