// largest common denominator of a and b function lcD(a, b=10) { if (b == 0) return a; else { if (a > b) return lcD(a-b, b); else return lcD(a, b-a); } } // compute a couple of lcDs local x=1; while(x < 10) { print (lcD(x, 27)+"\n"); x = x+1; }