Problem: Typing a Digit in Words

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".

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 statements to examine the possible 11 cases.

Testing in the Judge System

Test your solution here: https://judge.softuni.org/Contests/Practice/Index/506#4.

results matching ""

    No results matching ""