L.C.M

Note

To find LCM use GCD first and then use the following formula:

  • A*B=GCD*LCM

Java

Python