Print any pair of integers with sum of GCD and LCM equals to N | Java implementation to print any pair of integers whose summation of GCD and LCM is equal to integer N ; Function to print the required pair ; Print the pair ; Driver code
class GFG { static void printPair ( int n ) { System . out . print ( 1 + " ▁ " + ( n - 1 ) ) ; } public static void main ( String [ ] args ) { int n = 14 ; printPair ( n ) ; } }