text: 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
code: function findEquation ( S , M ) { document . write ( " " + ( ( - 1 ) * S ) + " " + M ) ; } var S = 5 , M = 6 ; findEquation ( S , M ) ;