Last active
December 12, 2016 00:13
-
-
Save oleglomako/50aeffac6e2df9a89665cfeb380cbceb 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
| public int gcd(int p, int q){ | |
| if(q==0) return p; | |
| int r=p%q; | |
| return gcd(q,r); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment