![]() |
VOOZH | about |
In this article, we will learn how to write a C program to find the LCM of two numbers. LCM (Least Common Multiple) of two numbers is the smallest positive number that can be divided by both numbers without leaving a remainder. For example, the LCM of 15 and 25 is 75.
The LCM of 15 and 25 is 75.
In mathematics, the LCM of two numbers is the product of two numbers divided by their GCD. So,
LCM(a, b) = (a x b) / GCD(a, b)
Refer to the article Program to Find GCD or HCF of Two Numbers to learn how to find the GCD of two numbers.
LCM of 15 and 20 is 60
Please refer to the complete article Program to find LCM of two numbers for more methods to find LCM of two numbers.