factorial
import java.math.BigDecimal;
public class factorial
{
public static void main(String[] args)
{
BigDecimal y= new BigDecimal(1);
for(int i=2; i<=1000; i++)
{
BigDecimal x= new BigDecimal(i);
y=y.multiply(x);
}
System.out.println(y);
}
}
posted on 2017-10-27 10:04 MACHINE_001 阅读(113) 评论(0) 编辑 收藏 举报