Skip to content

Invalid LCM code #99

@Sangamesh06

Description

@Sangamesh06

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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions