Hello I'm new here and I've been up two night's trying to figure out how to write a program that will convert numbers to word. If anyone can help please respond to the post. here is what I sort of figured out so far. As you can tell I'm still only about 5 months into programming. I need the program to be able to do this up to 20,000.
/** Brandon Brown **/
/** 2/17/05 **/
//*ALGORITHM
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int number, one ;
cout << "enter number "<< endl;
cin >>number;
cout << number<< "number :"<< endl;
switch (int)
case 1:
cout << "one";
switch (int)
case 2:
cout << "two";
switch (int)
case 3:
cout << "three";
switch (int)
case 4:
cout << "four";
switch (int)
case 5:
cout << "five";
switch (int)
case 6:
cout << "six";
switch (int)
case 7:
cout << "seven";
return 0;
}