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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!