discroot math sqrt( croot (- discroot( aroot (- discroot( aprint("\nthe solutions are:"root root main(this program fills the bill nicely here is sample session that runs the new program twicequadratic main(this program finds the real solutions to quadratic please enter the coefficients (abc) , , the equation has no real rootsquadratic main(this program finds the real solutions to quadratic please enter the coefficients (abc) , , the solutions are- - multi-way decisions the newest version of the quadratic solver is certainly big improvementbut it still has some quirks here is another example runquadratic main(this program finds the real solutions to quadratic please enter the coefficients (abc) the solutions are- - this is technically correctthe given coefficients produce an equation that has double root at - howeverthe output might be confusing to some users it looks like the program has mistakenly printed the same number twice perhaps the program should be bit more informative to avoid confusion the double-root situation occurs when discrim is exactly in this casediscroot is also and both roots have the value - if we want to catch this special caseour program actually needs three-way decision here' quick sketch of the designcheck the value of discrim when handle the case of no roots