I need to write a program in C# that asks for a digit (0-9), and depending on the input, shows the digit as a word (in English).
I need to print “not a digit” in case of invalid input. Also a switch statement must be used.
As an example:
d
|
result
|
2
|
two
|
1
|
one
|
0
|
zero
|
5
|
five
|
-0.1
|
not a digit
|
hi
|
not a digit
|
9
|
nine
|
10
|
not a digit
|