Quadratic equation whose roots are reciprocal to the roots of given equation | Java program for the above approach ; Function to find the quadratic equation having reciprocal roots ; Print quadratic equation ; Driver Code ; Given coefficients ; Function call to find the quadratic equation having reciprocal roots
class GFG { static void findEquation ( int A , int B , int C ) { System . out . print ( " ( " + C + " ) " + " x ^ 2 ▁ + ( " + B + " ) x ▁ + ▁ ( " + A + " ) ▁ = ▁ 0" ) ; } public static void main ( String args [ ] ) { int A = 1 , B = - 5 , C = 6 ; findEquation ( A , B , C ) ; } }