package cn.jbit.nodetree.test;
public class Test2 {
public static void main(String[] args) {
// 5*4*3*2*1
// 6*5*4*3*2*1
int m = test(6);
System.out.println(m);
}
public static int test(int n){
if(n == 1){
return 1;
}else{
return n*test(n-1);
}
}
}
二叉树(三)
最新推荐文章于 2022-03-14 17:09:57 发布