Created
March 2, 2018 22:57
-
-
Save DaviRamosAndrade/7216d81448a6ec038dcaa36667fb4287 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 euclides(int dividendo, int divisor) | |
{ | |
return abs(divisor) != 0 ? euclides(divisor, dividendo % divisor) : dividendo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment