Created
April 14, 2022 13:53
-
-
Save AlphaNecron/b00c173edc8727c8a110cfadc204a83f 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 UCLN(int a, int b) { | |
if (b==0) return a; | |
return UCLN(b, b%a); | |
} | |
int BCLN(int a, int b) { | |
return (a * b) / UCLN(a,b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment