Skip to content

Invalid LCM code #99

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions