Created
April 12, 2016 03:03
-
-
Save LisaBee224/d31f01d167e8c67694d64504296ecc85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert_to_roman(arabic) | |
numeral = "" | |
number = arabic | |
$letters.each do |key, value| | |
numerals += value * (number / key) | |
num -= key * (num/key) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment