Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int gcd(int x, int y)
- {
- int t;
- while(y != 0)
- {
- t = y;
- y = x%y;
- x = t;
- }
- return Math.abs(x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement