Find the other number when LCM and HCF given | Function that will calculates the zeroes at the end ; Driver code ; Calling function .
function otherNumber ( A , Lcm , Hcf ) { return ( Lcm * Hcf ) / A ; } let A = 8 , Lcm = 8 , Hcf = 1 ; let result = otherNumber ( A , Lcm , Hcf ) ; document . write ( " " + result ) ;