public static void main(String[] args) { System.out.println(xin(10));//10封信 } public static int xin(int num){ if(num==1){ return 1; } return (num-1)*xin(num-1);//算法核心 }