1*2*3.....*100 的结果 用java语言 怎么编?
public class cheng
{
public static void main(String [] args)
{
double i=1,sum=1;
for(i=1;i<=100;i++)
sum=i*sum;
System.out.println(sum);
}
}
public class cheng
{
public static void main(String [] args)
{
double i=1,sum=1;
for(i=1;i<=100;i++)
sum=i*sum;
System.out.println(sum);
}
}