Convert number to words

Input: integer number from 1 to 999999999;
Output: spelling this number in English.

IN

13

OUT

thirteen

IN

6

OUT

six

IN

256

OUT

two hundred fifty six

IN

1024

OUT

one thousand twenty four

IN

123456789

OUT

one hundred twenty three million four hundred fifty six thousand seven hundred eighty nine

IN

54321

OUT

fifty four thousand three hundred twenty one


Leave a comment

Parsed as Markdown

Login to leave a comment