The Least Common Multiple (LCM) of two numbers is the smallest number which is divisible by both the numbers. In this program, we start iterating from the greatest of the two numbers and stop iterating when we find a number that is divisible by both numbers.
Comments