Home > Back-end >  How to code to calculate the result
How to code to calculate the result

Time:11-11

If the Numbers 1 to 5 to write in English: one, two, three, four, five, is a total of 3 + 3 + 5 + 4 + 4=19 letters, if all 1 to 1001 (including one thousand and one) Numbers are written in English, will use how many letters?
In any one language can be, the results can,

CodePudding user response:

It depends on the number in English how to write
1001=one thousand and one
One or a zero zero one
Or one O O one
Or one double O one
.

CodePudding user response:

1, the string to remove don't need
2, the Length (x)

CodePudding user response:

The Arabic numeral turn English capital
Here is to realize the Arabic numeral turn English Numbers, and the rest is the string length accumulation,
  • Related