publicclassQR{publicstaticvoidmain(String[]args){mm(3);}publicstaticvoidmm(intn){if(n>2){mm(n-1);}System.out.println("n="+n);}}输出结果是:n=2n=3
publicstaticvoidmain(String[]args){mm(3);}publicstaticvoidmm(intn){if(n>2){mm(n-1);}System.out.println("n="+n);}}输出结果是:n=2n=3
mm(3);}publicstaticvoidmm(intn){if(n>2){mm(n-1);}System.out.println("n="+n);}}输出结果是:n=2n=3
}publicstaticvoidmm(intn){if(n>2){mm(n-1);}System.out.println("n="+n);}}输出结果是:n=2n=3
publicstaticvoidmm(intn){if(n>2){mm(n-1);}System.out.println("n="+n);}}输出结果是:n=2n=3
if(n>2){mm(n-1);}System.out.println("n="+n);}}输出结果是:n=2n=3
mm(n-1);}System.out.println("n="+n);}}输出结果是:n=2n=3
}System.out.println("n="+n);}}输出结果是:n=2n=3
System.out.println("n="+n);}}输出结果是:n=2n=3
}}输出结果是:n=2n=3
}输出结果是:n=2n=3
输出结果是:n=2n=3
aluckdog
相关分类