Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 24, 2020 17:01
Show Gist options
  • Save parzibyte/4d49bf969636d80ff05df210edc3e530 to your computer and use it in GitHub Desktop.
Save parzibyte/4d49bf969636d80ff05df210edc3e530 to your computer and use it in GitHub Desktop.
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