Created
April 12, 2016 02:54
-
-
Save LisaBee224/58be0baf246ff78743a1074abc33c31a to your computer and use it in GitHub Desktop.
This file contains hidden or 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) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment