Advertisement
electricmaster

GCD

Mar 1st, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.16 KB | None | 0 0
  1.         private static int gcd(int m, int n) // See Euclid's Algorithm
  2.         {
  3.             if (n == 0) return m;
  4.             else return gcd(n, m % n);
  5.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement