递归
package com.zzz.base;
public class digui {
public static void main(String args[]){
System.out.println(f(5));
}
public static int f(int i){
if (i==1) {
return 1;
}
else {
return i*f(i-1);
}
}
}