Write a program that inputs an integer in the range [0 ... 9] and outputs it in words in English. If the number is out of range, print "number too big".
Input | Output |
---|---|
5 | five |
1 | one |
9 | nine |
10 | number too big |
We can use a series of if-else
statements to examine the possible 11 cases.
Test your solution here: https://judge.softuni.org/Contests/Practice/Index/506#4.