求大佬解答
#include <stdio.h>#include <stdlib.h>
int main()
{
int sum = digui(1);
printf("第一天摘的桃子%d",sum);
return 0;
}
int digui(int n)
{
int sum;
if(n==10)
{
return 1;
}
else
{
sum = (digui(n+1)+1)*2;
printf("第%d天还剩%d个桃子\n",n,sum);
}
return sum;
}
sum = (digui(n+1)+1这个加一请问是有什么作用是加一天还是????)*2; 求解答