(1)递归结束条件为n=0。
(2)递推公式为n+fun5(n-1)。
int fun5(int n) { if (n == 0) { return 0; } return n + fun5(n - 1); }