python
shell
c
java
class Recursive{
public static void main(String[] args){
System.out.println(recursive(5));
}
public static int recursive(int i){
if(i == 1){
return 1;
}
return i * recursive(i-1);
}
}
转载于:https://blog.51cto.com/zhangke0516/1863879