import java.util.*;
public class test{
public static void main(String[] args) {
Scanner shuzi=new Scanner(System.in);
System.out.println("使用请输入\"1\"+回车,退出按任意键+回车");
int pd=shuzi.nextInt();
while (pd==1) {
System.out.println("请输入一个100以内的数字:");
int begin=shuzi.nextInt();
if(begin>19) {
int gw=begin%10;
int sw=begin/10%10;
System.out.println("当前数字是:"+begin+"\n"+"十位是:"+sw+"\n"+"个位是:"+gw);
String[]ten=new String[] {"","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninty"};
String[]one=new String[] {"","-one","-two","-three","-four","-five","-six","-seven","-eight","-nine"};
System.out.println("你输入的数字:"+begin+"的英文是:"+ten[sw]+one[gw]);
}
if(begin>9&begin<20) {
int gw=begin%10;
System.out.println("当前数字是:"+begin+"\n"+"个位是:"+gw);
String[]shi=new String[] {"ten","eleven","twevle","thirteen","fourteen","fifteen","sixteen","seventeen","eightieen","nineteen"};
System.out.println("你输入的数字:"+begin+"的英文是:"+shi[gw]);
}
if(begin>1&begin<10) {
int gw=begin%10;
System.out.println("当前数字是:"+begin+"\n"+"个位是:"+gw);
String[]ge=new String[] {"two","three","four","five","six","seven","eight","nine"};
System.out.println("你输入的数字:"+begin+"的英文是:"+ge[gw-2]);
}
System.out.println("使用请输入\"1\"+回车,退出按任意键+回车");
int pd2=shuzi.nextInt();
if(pd2!=1) {
break;
}
}
}
}