3. Write a program to convert a number between 0 and 20000 (exclusive) into words. The program must use functions, and switch/case. Here is a sample run:


This program will convert a number to words.
Enter a number less than 20,000 : 18975

Number:18975
in Words: eighteen thousand nine hundred seventy-five

Press any key to continue

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.