If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?
NOTE:
void hundred(char t[],int x);
char single[10][10]={"", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
char tens[10][10]={"","ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"};
char teen[10][10]={"", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" };
char hun[8]={"hundred"};
int main()
{
}
void hundred(char t[],int x)
{
}