#include <stdio.h> int PAI(int n) { // 写终止条件 if (n == 1) { return 1; } return PAI(n - 1) + 1; } int main() { printf("%d", PAI(5)); return 0; }