Function to prvar the ratio of LCM to GCD of the given array
function findRatio ( arr , n ) { var gcd = findGCD ( arr , n ) ; var lcm = findLCM ( arr , n ) ; document . write ( ( lcm / gcd ) ) ; document . write ( " " ) ; }