text: Generate Quadratic Equation having given sum and product of roots | C # program for the above approach ; Function to find the quadratic equation from the given sum and products of roots ; Print the coefficients ; Driver code
code: using System ; class GFG { public static void findEquation ( int S , int M ) { Console . Write ( "1 ▁ " + ( ( - 1 ) * S ) + " ▁ " + M ) ; } static void Main ( ) { int S = 5 , M = 6 ; findEquation ( S , M ) ; } }