//递归算法 static int DiGui(int n) { int sum = 0; if (0 == n) { return 1; } else { sum = n * DiGui(n-1); } return sum; }