So I have this recursive function:

Code:
int test(int x, int y)
{
if (x==y)
return x;
else if (x > y)
return (x+y);
else
return test(x+1, y-1);
}
I tried to step through it...but I just can't wrap my brain around recursion, and when I run it....its only returning the y, such as for example, test(3, 9) it returns 8.

Why?