RosettaCodeData/Task/Greatest-common-divisor/PostScript/greatest-common-divisor-2.ps

6 lines
74 B
PostScript
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
/gcd {
dup 0 ne {
dup 3 1 roll mod gcd
} { pop } ifelse
} def