Question: write in c++ program: Write a program that uses the given coefficients of the quadratic equation to find its real roots and their number. Input
write in c++ program:
Write a program that uses the given coefficients of the quadratic equation to find its real roots and their number. Input Three real numbers A, B, C are the coefficients of the quadratic equation Ax * x + Bx + C = 0, the coefficient A can not be zero. Output data Calculate the results in the following format (output all real numbers with 5 decimal places): if the equation has no real roots The equation () * X ^ 2 + () * X + () = 0 Number of roots: if the equation has real roots The equation () * X ^ 2 + () * X + ( ) = 0 Number of roots: <1st root of the equation (smaller two roots)> <2nd root of the equation>
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
