Generate Quadratic Equation having given sum and product of roots | Function to find the quadratic equation from the given sum and products of roots ; Print the coefficients ; Driver Code
function findEquation ( S , M ) { document . write ( " " + ( ( - 1 ) * S ) + " " + M ) ; } var S = 5 , M = 6 ; findEquation ( S , M ) ;