Check whether one root of the Quadratic Equation is twice of other or not | Java program to check if one root of a quadratic equation is twice of other or not ; Function to find the required answer ; Driver Code
class GFG { static void checkSolution ( int a , int b , int c ) { if ( 2 * b * b == 9 * a * c ) System . out . print ( " Yes " ) ; else System . out . print ( " No " ) ; } public static void main ( String [ ] args ) { int a = 1 , b = 3 , c = 2 ; checkSolution ( a , b , c ) ; } }