Function to print the ratio of LCM to GCD of the given array
static void findRatio ( int arr [ ] , int n ) { int gcd = findGCD ( arr , n ) ; int lcm = findLCM ( arr , n ) ; System . out . print ( ( lcm / gcd ) ) ; System . out . print ( " : 1" ) ; }