recursion easy problems practise code example
Example: recursion practice problems beginners
int fun1(int x, int y)
{
if (x == 0)
return y;
else
return fun1(x - 1, x + y);
}
int fun1(int x, int y)
{
if (x == 0)
return y;
else
return fun1(x - 1, x + y);
}