The assistant and the numbers X15656


Statement
 

pdf   zip

html

Input The input of the program is a set of numbers up to twelve digits, ending with a zero.

Output Its value in words.

Public test cases
  • Input

    8
    14
    3672
    1234567
    1001001001
    0
    

    Output

    8 in words is eight 
    14 in words is fourteen 
    3672 in words is three thousand six hundred seventy two 
    1234567 in words is one million two hundred thirty four thousand five hundred sixty seven 
    1001001001 in words is one billion one million one thousand one 
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C
    User solutions