Find any pair with given GCD and LCM | Java program to print any pair with a given gcd G and lcm L ; Function to print the pairs ; Driver Code
import java . io . * ; class GFG { static void printPair ( int g , int l ) { System . out . print ( g + " ▁ " + l ) ; } public static void main ( String [ ] args ) { int g = 3 , l = 12 ; printPair ( g , l ) ; } }