Question: write in C + + Write a program that prompts the user to input the value of: a ( the coefficient of x ^ 2

write in C++
Write a program that prompts the user to input the value of:
a (the coefficient of x^2)
b (the coefficient of x)
c (the constant term)
The program then outputs the type of roots of the equation.
Furthermore, if b^2-4ac 0, the program should output the roots of the quadratic equation.
Format your output with a decimal precision of 2.

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