Created
September 15, 2018 01:17
-
-
Save completejavascript/42ff12d38e324657634055c1caf8adea 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
int LCM(int a, int b) | |
{ | |
if(a == 0 || b == 0) return -1; | |
return (abs(a * b) / GCD(a, b)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment