代码一:
import java.util.Scanner;
public class test {
public static void main(String args[]) {
int d,a,b=1,t=0;
String s="";
String [] shu={"零","一","二","三","四","五","六","七","八","九"};
String [] wei={"十","百","千","万","十","百","千","亿","十","百","千","万"};
Scanner sc=new Scanner(System.in);
d=sc.nextInt();
while(d!=0){
a=d%10;
if(a==0){
if(t!=0&&b!=0)
s=shu[0]+s;
}else if(a>0&&a<10){
s=shu[a]+s;
}
if(d/10!=0&&(d/10%10!=0||t==3))