#include<stdio.h>
int the(int shy){
if(shy==1){
return 1;
}else{
//n=4 return 4+the(3);==>4+3+the(2)==>4+3+2+the(1)==>4+3+2+1 以此类推
return shy+the(shy-1);
}
}
int main () {
int sum;
sum=the (4);//括号的值自行输入
printf("整数和是%d\n",sum);
return 0;
}