21的英文單詞是什麼

21的英文單詞是什麼


twenty-one



22單詞


twenty-one twenty-two



JAVA如何把數位1-9轉換成英文單詞1-9


放到一個數組最簡單了,根據數位去索引.
importjava.util.Scanner;
public class Du3 {
public static void main(String[] args){
String[] numsAry = {“zero”,“one”,“two”,“three”,“four”,“five”,“six”,“seven”,“eight”,“nine”};
Scanner scanner = new Scanner(System.in);
System.out.print(“Please input a number between 1 and 9:”);
int num =scanner.nextInt();
System.out.println(num +“to corresponding string is:”+ numsAry[num]);
}
}
----------------
Please input a number between 1 and 9: 5
5 to corresponding string is: five



英語基數詞1~21單詞,序數詞21單詞
11點前搞定
順便把序數詞寫下,給紅旗哦


one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen ninteen twenty twenty-one first second third fourth fifth sixth seventh eighth ninet…