摘要: ``` /** * Description:阶乘 0! = 1,n! = (n-1)! * n; */ public class Factorial { public static int fac(int n){ if(n == 0 | n == 1) return 1; if(n > 1) return fac(n-1)*n; el... 阅读全文
posted @ 2017-12-06 23:27 希望在田野上 阅读(361) 评论(0) 推荐(0) 编辑