WAP to calculate the roots of a quadratic equation (using switch).
Answers
Answered by
0
Answer:
For a quadratic equation ax2+ bx + c = 0 (a≠0), discriminant (b*b-4*a*c) decides the nature of roots. If it's less than zero, the roots are imaginary if it's greater than zero roots are real. If it's zero, the roots are equal. For the quadratic equation sum of roots = -b/a and product of roots = c/a.....
.
.......
Similar questions