Numbers to Words
Given a number from 1 to 4 (inclusive), return a word representation of the number. For example, given
two. If the number is greater than 4, return the phrase
too large. If the number is less than 1, return the phrase
Boilerplate code is provided for Java. For other languages, read in the numbers from the standard input in the following format.
- The input starts with N, the number of cases.
- N lines follow, which each contains 1 integer.
Print out the correct phrase for each case on its own line.
Click on "View Raw I/O" below to view sample input and output.