Description of the bug
The code provided in the "03-conditionals-loops/2. Intermediate Java Programs/LCM.java"
does not give the lcm insted it gives the commmon factor between the two elements
Steps To Reproduce
go to file 03-conditionals-loops/2. Intermediate Java Programs/LCM.java
and run the code
Additional Information
We can get lcm by dividing the multiplication of the number by their hcf
Description of the bug
The code provided in the "03-conditionals-loops/2. Intermediate Java Programs/LCM.java"
does not give the lcm insted it gives the commmon factor between the two elements
Steps To Reproduce
go to file 03-conditionals-loops/2. Intermediate Java Programs/LCM.java
and run the code
Additional Information
We can get lcm by dividing the multiplication of the number by their hcf