Okay, I have this problem to do and I have no idea how to do it.
Refer to the method result:
public int result (int n)
{
if (n == 1)
return 2;
else
return 2 * result(n-1);
}
If n > 0, how many times will result be called to evaluate result(n) (including the initial call)? State how you figured it out.