#include<stdio.h>
int main()
{
int age(int n);
printf("no.5,age:%d\n",age(5));
return 0;
}
int age(int n)
{
int c;
if(n==1)
c=10;
else
c=age(n-1)+2;
return c;
}
/*
2+age[4]
2+2+age[3]
2+2+2+age[2]
2+2+2+2+age[1]
2+2+2+2+10=18;
*/
int main()
{
int age(int n);
printf("no.5,age:%d\n",age(5));
return 0;
}
int age(int n)
{
int c;
if(n==1)
c=10;
else
c=age(n-1)+2;
return c;
}
/*
2+age[4]
2+2+age[3]
2+2+2+age[2]
2+2+2+2+age[1]
2+2+2+2+10=18;
*/