编辑代码

#include <stdio.h>
int fun(int n)
{
if(n==10)
return 1;
else
return 2*(fun(n+1)+1);
}
int main()
{
printf("猴子一个摘了%d个水果",fun(1));
}