用英文写出1到1000的所有数字需要多少个字母?

学习 时间:2026-03-30 09:00:55 阅读:6730
用英文写出1到1000的所有数字需要多少个字母?

最佳回答

英勇的煎蛋

细腻的书包

2026-03-30 09:00:55

如果数字1到1000(包含1000)用英文写出,那么一共需要多少个字母?注意:空格和连字符不算在内。例如,342 (three hundred and forty-two)包含23个字母; 115 (one hundred and fifteen)包含20个字母。"and" 的使用与英国标准一致。public class Test { public static void main(String[] args) { String[] m=new String[]{"","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"}; String[] n=new String[]{"","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"}; int first,second,three,sum=0; for (int i=1;i= 1) { three = m[c]。length() + 7; if(i % 100 != 0) three += 3; } else three = 0; if(b >= 2) { second = n[b]。length(); first = m[a]。length(); } else { second = 0; first = m[i % 100]。length(); } sum = sum + first + second + three; } sum+=11; System。out。println(sum); } }

最新回答共有2条回答

  • 笑点低的豌豆
    回复
    2026-03-30 09:00:55

    如果数字1到1000(包含1000)用英文写出,那么一共需要多少个字母?注意:空格和连字符不算在内。例如,342 (three hundred and forty-two)包含23个字母; 115 (one hundred and fifteen)包含20个字母。"and" 的使用与英国标准一致。public class Test { public static void main(String[] args) { String[] m=new String[]{"","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"}; String[] n=new String[]{"","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"}; int first,second,three,sum=0; for (int i=1;i= 1) { three = m[c]。length() + 7; if(i % 100 != 0) three += 3; } else three = 0; if(b >= 2) { second = n[b]。length(); first = m[a]。length(); } else { second = 0; first = m[i % 100]。length(); } sum = sum + first + second + three; } sum+=11; System。out。println(sum); } }

上一篇 9+19+199+1999+19999 = = =

下一篇 人教版小学生四年级语文上册105页的小练笔怎么写范文急!