package com.wangzhao.Test;
public class Demo1 {
public static void main(String[] args) {
System.out.println(getNum(5));
}
public static int getNum(int a ){
if(a==1){
return 1;
}
return a*getNum(a-1);
}
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-2906.html