RosettaCodeData/Task/Greatest-common-divisor/CoffeeScript/greatest-common-divisor-1.coffee
2023-07-01 13:44:08 -04:00

2 lines
53 B
CoffeeScript

gcd = (x, y) ->
if y == 0 then x else gcd y, x % y