]>
code.delx.au - gnu-emacs-elpa/blob - packages/realgud/test/gcd.rb
c780a313116a3d73ea3dadd3a98f3702274b5104
3 # GCD. We assume positive numbers
18 a
, b
= ARGV[0..1].map
{|arg
| arg
.to_i
}
19 puts
"The GCD of %d and %d is %d" % [a
, b
, gcd(a
, b
)]