递归方法

private static int fun(int n){
    if(n==0)return 1;
    else return n*fun(n-1);
}
posted @ 2022-11-08 15:48  Liku007  阅读(15)  评论(0编辑  收藏  举报