Created
August 24, 2020 17:01
-
-
Save parzibyte/4d49bf969636d80ff05df210edc3e530 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static int minimoComunMultiplo(int a, int b) { | |
// Y ahora aplicamos la fórmula que dice: | |
// MCM(a, b) = (a * b) / MCD(a, b) | |
return (a * b) / maximoComunDivisor(a, b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment