RosettaCodeData/Task/Greatest-common-divisor/MAXScript/greatest-common-divisor-2.max
2013-04-11 11:14:19 -07:00

4 lines
68 B
Text

fn gcdRec a b =
(
if b > 0 then gcdRec b (mod a b) else abs a
)