import java.io.*;
class Test1
{
public static void main(String[]args) throws Exception
{
String[] s={"零 " ,"一","二","三","四","五","六","七","八","九"};
//键盘录入
BufferedReader bufr=
new BufferedReader(new InputStreamReader(System.in));
String str=bufr.readLine();
for(int x =0;x<str.length(); x++)
{
int i=str.charAt(x)-'0';
if(i>=0&&i<10)
System.out.print(s[i]);
else
System.out.print("输入错误,请确认后输入");
break;
}
}
} |
|