简单的For循环练习4(求5的阶乘)

/* 需求:求5的阶乘web 什么是阶乘呢? n! = n*(n-1)! 规则 n! = n*(n-1)*(n-2)*()*...3*2*1 求阶乘思想 */svg class ForDemo5{ public static void main(String[] args){ //定义最终结果变量 int jc = 1; for(int x = 1;x<=5;x++){
相关文章
相关标签/搜索