help me to solve the following program in shortest form....

Write a program to output any number between 1 and 99999 and output it in words.

For example: If the number is 213 then it should output "Two hundred and thirteen"