Hi all. I have the following code
void f(int x)
{
if(x<0||x>10000) return ;
f(x-1);
f(2*x);
}
When this code is executed it will start from left (x-1) untill he reach the last element and then go to the right and so on
How ever i want it to proceed from up to down like in the picture
Any helps. regards.