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: def findEquation ( S , M ) : NEW_LINE INDENT print ( "1 ▁ " , ( ( - 1 ) * S ) , " ▁ " , M ) NEW_LINE DEDENT S = 5 NEW_LINE M = 6 NEW_LINE findEquation ( S , M ) NEW_LINE