Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid LCM code #99

Open
Sangamesh06 opened this issue Aug 7, 2023 · 0 comments
Open

Invalid LCM code #99

Sangamesh06 opened this issue Aug 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Sangamesh06
Copy link

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

@Sangamesh06 Sangamesh06 added the bug Something isn't working label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants