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));
}
}
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));
}
}
转载于:https://www.cnblogs.com/zhangchaomiao/archive/2013/03/06/2946563.html