展开全部
import java.util.Scanner;
public class NumToCh {
private static String[] Ch={"ling","yi","er","san","si","wu","liu","qi","ba","jiu","shi"};
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入e69da5e6ba9062616964757a686964616f31333363363439:");
int i = sc.nextInt();
if(i/10 > 0){
int h = i/10;
int l = i%10;
if(i%10 != 0){
System.out.println(Ch[h]+" "+Ch[10]+" "+Ch[l]);
}else {
System.out.println(Ch[h]+" "+Ch[10]);
}
}else {
switch (i) {
case 0: System.out.println(Ch[0]);sc.close();break;
case 1: System.out.println(Ch[1]);sc.close();break;
case 2: System.out.println(Ch[2]);sc.close();break;
case 3: System.out.println(Ch[3]);sc.close();break;
case 4: System.out.println(Ch[4]);sc.close();break;
case 5: System.out.println(Ch[5]);sc.close();break;
case 6: System.out.println(Ch[6]);sc.close();break;
case 7: System.out.println(Ch[7]);sc.close();break;
case 8: System.out.println(Ch[8]);sc.close();break;
case 9: System.out.println(Ch[9]);sc.close();break;
case 10: System.out.println(Ch[10]);sc.close();break;
default:break;
}
}
sc.close();
}
}
0-99以内的 想要更多的,在这个基础上加吧