Problem: digit in english

Write a program that inputs an integer in the range [0 ... 9] and output it with words in English. If the number is out of range, print "too large a number".

Sample Input and Output

Input Output
5 five
1 one
9 nine
10 number too big

Hints and Guidelines

We can use a series of if-else conditions to create the possible 11 cases.

Testing in the Judge System

Test your solution from the example here:

results matching ""

    No results matching ""