输入n个整型数字在屏幕上显示其乘积的java代码·····
import java.util.*;
public class CHENGJI{
public static void main(String args[])
{
Scanner reader=new Scanner(System.in);
int ji=1;
int n;
while(reader.hasNextInt())
{ int x=reader.nextInt();
ji=ji*x;
}
System.out.println(""+(ji));
}
}