Ruby Integer lcm() function with example
The lcm() function in Ruby returns the lcm of two numbers. LCM signifies the lowest common multiple which is divisible by both the numbers.
Parameter: The function requires two numbers whose lcm is returned.
Return Value: The function returns the lcm of two numbers