

Output:
Enter the values of A; 1 Enter the values of B : 3 Enter the values of C: 8 RESULT:
Roots are complex/imaginaiy number. Roots of quadratic equation are:
Root-1 -1.500*2.398!
Root-2 -1.500-2.398i
Enter the values of A: 2 Enter the values of B : 4 Enter the values of C: 2 RESULT:
Both roots are real numbers and equal. Root of quadratic equation is:
Root-1 = Root-2 = -1.000
Enter the values of A: o Enter the values of B : 5 Eater the values of C : 8 RESULT:
Equation is linear.
Eater the values of A: 3 Enter the values of B : 8 Enter the values of C : 2 RESULT:
Roots are real numbers and unequal. Roots of quadratic equation are: Root-i = -0.279 , Root-2 = -2.387