23.12.2019
42

- C Program To Find Roots Of Quadratic Equation Using Functions
- Quadratic Equation Examples With Answers

C Program To Find Roots Of Quadratic Equation Using Functions

Quadratic Equation Examples With Answers
Write a program that calculates the real solution of the quadratic equation ax²+bx+c=0Read in the values for the parameters a,b,c(type float).Then the program should calculate the solution considering the following circumstances:a=0andb=0=Not a valid equationa=0 and b≠0 = x=-c/bb² -4ac Not a Real Solutionb² -4ac 0 = x1= (-b+√(b² -4ac))/2a, x1= (-b -√(b² -4ac))/2aHint:The c function for √x is sqrt(x).To use this function you need to includemath.has a header file#includeSolution.