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 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
include iostream include cmath int main double a b c double r1 ... View full answer
Get step-by-step solutions from verified subject matter experts
