Find the roots of quadratic equation

Quadratic equation is in the form of ax^2 + bx + c = 0,  Enter the value of a,b and c.
---Note: a,b and c should not be equal to zero. 
Steps:
Step1  : calculate the discriminant. 
  1. If discriminant is greater than zero goto step2.
  2. If discriminant is less than zero goto step3.
  3. If discriminant is equal to zero goto step4
step2 :  Roots are real and distinct calculate the required roots.
step3 : Roots are imaginary calculate the required roots.
step3: Roots are real and equal calculate the required roots.

Posted on by