Question: c programming 4. Write a program to compute the real roots of a quadratic equation (15 points). m2 + bx + C' - t} The
c programming

4. Write a program to compute the real roots of a quadratic equation (15 points). m2 + bx + C' - t} The roots are given by the equations \\le 4ac \\lb2 4uc 2a \"'3 ' 4' 2a The program should request for the values of the constants a, b and e and print the values of X] and :42. Use the following rules: {a} No solution, if both a and b are zero [b] There is only one root, if a = 0 {c} There are no real roots, if bz 4ac is negative {a} Otherwise, there are two real roots IIIb+ J |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
