public String numbers(int num){
String[] once = {"Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"};
String[] tenths = {"Ten","Evelen","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Ninteen"};
String[] twenties = {"Twenty","Thirty","Fourty","Fifty","Sixty","Seventy","Eighty","Ninety"};
String[] hundreds = {"One Hundred","Two Hundred","Three Hundred","Four Hundred","Five Hundred","Six Hundred","Seven Hundred","Eight Hundred","Nine Hundred"};
String[] thousands = {"One Thousand","Two Thousand","Three Thousand","Four Thousand","Five Thousand","Six Thousand","Seven Thousand","Eight Thousand","Nine Thousand"};
String num_tostring = num.ToString();
int word_len = num_tostring.Length;
for(int i = 0; i <= word_len; i++){
int toNum = Convert.ToInt32(num_tostring[i]);
words += thousands[toNum-1];
int toNum = Convert.ToInt32(num_tostring[i]);
words += hundreds[toNum-1];
int toNum = Convert.ToInt32(num_tostring[i]);
if(Convert.ToInt32(num_tostring[i]) == 1){
words += tenths[toNum-1];
Console.WriteLine(num_tostring);
public static void Main()
Console.Write("Enter a number: ");
input = Convert.ToInt32(Console.ReadLine());
numToWords nw = new numToWords();