Skip to content

Instantly share code, notes, and snippets.

@jonatasemidio
Created May 4, 2015 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonatasemidio/af3461a0c494b494c8e7 to your computer and use it in GitHub Desktop.
Save jonatasemidio/af3461a0c494b494c8e7 to your computer and use it in GitHub Desktop.
Exemplo Algoritimo de Euclides
def mdc(a, b) { return (b == 0) ? a : mdc (b, a%b) }
mdc 252, 105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment