Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 15th, 2012  |  syntax: Java  |  size: 0.11 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public static long gcd(long p, long q){
  2.                 if (q==0) return p;
  3.                 long r = p % q;
  4.                 return Math.abs(gcd(q, r));
  5.         }