void foo( int x) x = 1
{
if ( x
< 2 )
{
cout
<< “Hello “
<< x <<endl;
foo(x+1);
foo(x+1);
cout
<< “Goodbye”
<< x << endl;
}
return;
}
void foo( int x) x = 1
{
if ( x
< 2 )
{
cout
<< “Hello “
<< x <<endl;
foo(x+1);
foo(x+1);
cout
<< “Goodbye”
<< x << endl;
}
return;
}
void foo( int x) x = 2
{
if ( x
< 2 )
{
cout
<< “Hello “
<< x <<endl;
foo(x+1);
foo(x+1);
cout
<< “Goodbye”
<< x << endl;
}
return;
}
void foo( int x) x = 2
{
if ( x
< 2 )
{
cout
<< “Hello “
<< x <<endl;
foo(x+1);
foo(x+1);
cout
<< “Goodbye”
<< x << endl;
}
return;
}
void foo( int x) x = 2
{
if ( x
< 2 )
{
cout
<< “Hello “
<< x <<endl;
foo(x+1);
foo(x+1);
cout
<< “Goodbye”
<< x << endl;
}
return;
}
void foo( int x) x = 2
{
if ( x
< 2 )
{
cout
<< “Hello “
<< x <<endl;
foo(x+1);
foo(x+1);
cout
<< “Goodbye”
<< x << endl;
}
return;
}