Showing posts with label If-Else-If Ladder Statement. Show all posts
Showing posts with label If-Else-If Ladder Statement. Show all posts

Wednesday, September 28, 2011

Program To Find the Roots Of Quadratic Equation


Quadratic Equations:
A quadratic equation is a polynomial equation of the second degree.The general form iswhere x represents a variable or an unknown, and a, b, and c are constants with a ≠ 0.The roots are given by the quadratic formula:
x=\frac{-b \pm \sqrt {b^2-4ac}}{2a},
Here is the coding to do it in C++ programming.