Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created November 8, 2017 06:28
def romanize(num)
D.map do |ltr, val|
amt, num = num.to_i.divmod(val)
ltr.to_s * amt
end.join
end
ARGV.each do |a|
puts romanize a
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment