Sha256: 0eaffdadaefc70a5050a6f189ce8e8cf163482672ec58a3087b0c4c3532fd4da

Contents?: true

Size: 112 Bytes

Versions: 1

Compression:

Stored size: 112 Bytes

Contents

 #el maximo comun divisor

def mcd(x, y)
  x, y = x.abs, y.abs
  while y != 0
    x, y = y, x % y
  end
  x
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prct09-0.0.1 lib/mcd.rb