Question: Write C++ program that accepts coefficients of a quadratic equation from the user and displays the roots. The form of the quadratic equation is:

Write C++ program that accepts coefficients of a quadratic equation from the 

Write C++ program that accepts coefficients of a quadratic equation from the user and displays the roots. The form of the quadratic equation is: y = ax +bx+c In this task we will assume that the equation will have two real roots r1 and r2. r1= r2= -b+b-4ac 2a -b-b-4ac 2a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include iostream include cmath int main double a b c double r1 ... View full answer

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 Programming Questions!