LCM of Two Numbers in Java Let's start discussing how to find LCM of two numbers in Java. We can find LCM in 2 ways: (1) by iterating over a loop (2) by using GCD What is the Least Common Multiple (LCM)? Its definition is self-explanatory. If there are two numbers x and y, LCM is a positive number and the smallest of all the common multiples of both x and y. … [Read more...] about LCM and GCD of Two Numbers in Java