//计算5的阶乘 5!的结果是? int i ; int s=1; for(i=1;i<=5;i++) { s=s*i; } System.out.println(s); 转载于:https://www.cnblogs.com/zs6666/p/5866701.html