活
活在陆地上的鱼
Unregistered / Unconfirmed
GUEST, unregistred user!
import java.util.*;
import java.io.*;
import java.lang.*;
public class Inpout1
{
public static void main(String[] args)
{
String Money[]=("壹","贰","叁","肆","伍","刘","柒","捌","玖");
Scanner in=new Scanner(System.in);
//使用Scanner类定义对象
System.out.println("please input a integer number");
int b=in.nextInt();
//接收整形数据
int x,y,z,q;
x=b/10;
y=b-x*10;
System.out.println(Money[x-1]+"拾"+Money[y-1]+"元");
}
}
我想做一个货币转换的小程序,但是在定义数组这边就过不去,帮忙看看,谢谢了
import java.io.*;
import java.lang.*;
public class Inpout1
{
public static void main(String[] args)
{
String Money[]=("壹","贰","叁","肆","伍","刘","柒","捌","玖");
Scanner in=new Scanner(System.in);
//使用Scanner类定义对象
System.out.println("please input a integer number");
int b=in.nextInt();
//接收整形数据
int x,y,z,q;
x=b/10;
y=b-x*10;
System.out.println(Money[x-1]+"拾"+Money[y-1]+"元");
}
}
我想做一个货币转换的小程序,但是在定义数组这边就过不去,帮忙看看,谢谢了