blob: 2c15e86e678b96c74100bb14ee77353a3f0e979b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
int func(int n)
{
if (n >= 10)
{
return 1;
}
else
{
return (func(n + 1) + 1) * 2;
}
}
int main()
{
int i;
int cnt;
i=1;
cnt=0;
cnt=func(i);
return cnt;
}
|