How do I create a program that will allow a user to type in a number, while the program outputs that number in words. For example, if a user types in 21, the computer would respond with twenty-one. Please allow the program to work for 0-30. How do I let the user know if a number typed in is not in that range? Thanks!
Start with this, and see what you can build
> numt="one two three four five"
> numi=3
> echo $numt | awk -v NUM=$numi '{print $NUM}'
three
is that what i do for every number 0-30? thats long