Question: Write a program that prompts the user to enter the coefficients a,b and c from the quadratic equation ax^2+bx+c = 0, and calculate the roots
Write a program that prompts the user to enter the coefficients a,b and c from the quadratic equation ax^2+bx+c = 0, and calculate the roots of the equation. Depending on the value of b^2-4ac (known by the discriminant), your program displays the root(s) of the given quadratic equation.
Use C not C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
