Write and test program that solves quadratic equations.A quadratic equation is an equation of the form ax² + bx + c where a,b and c are given coefficients and x is unknown.the coefficients are real number inputs,so they should be declare of type float or double.since quadratic equations typically have two solutions,use x1 and x2 for the solutions to be output.these be declared of type double to avoid inaccuracies from round of errors.use this formula to help you out.