Skip to content

Instantly share code, notes, and snippets.

@satococoa
Created May 19, 2012 09:33
Show Gist options
  • Select an option

  • Save satococoa/2730251 to your computer and use it in GitHub Desktop.

Select an option

Save satococoa/2730251 to your computer and use it in GitHub Desktop.
English Numerals

English Numerals

引数で与えられた数字を英語で表示してください。

$ ruby numerals.rb 7
  #=> seven

7    == seven
42   == forty-two
2001 == two thousand and one
1999 == nineteen hundred and ninety-nine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment