摘要: public class 阶乘{ public static int A(int n){ if(n==1) return 1; //注释:1的阶乘为1; else if(n==0) return 1; //注释:0的阶乘为1; else return A(n-1)*n; //注释:除0、1外,n!= 阅读全文
posted @ 2018-03-29 23:20 G小斌 阅读(119) 评论(1) 推荐(1) 编辑