#!/usr/bin/ruby # ## https://rosettacode.org/wiki/Greatest_common_divisor # func gcd(a, b) { b.is_zero ? a.abs : gcd(b, a % b); } say gcd(90, 24);