Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 24, 2020 02:11
Show Gist options
  • Save parzibyte/14ea13a95b52c3031b4950f0fd1ea1c2 to your computer and use it in GitHub Desktop.
Save parzibyte/14ea13a95b52c3031b4950f0fd1ea1c2 to your computer and use it in GitHub Desktop.
public static int maximoComunDivisorRecursivo(int a, int b) {
if (b == 0) return a;
return maximoComunDivisorRecursivo(b, a % b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment