TIA
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
Here's a version:
'----------------------------------------------------------------
declare function gcd(x,y)
print gcd(112,144)
sleep
function gcd(x,y)
do
q=int(x/y)
r=x-q*y
x=y
y=r
loop until r<=0
gcd=x
end function
'----------------------------------------------------------------
Example:
print gcd(112,144)
16
Tom Lake