Skip to content
Permalink
c870529952
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (19 sloc) 367 Bytes
#include <iostream>
using namespace std;
void function1( int counter )
{
if( counter == 0 ) return;
cout << "This is a function 1" << endl;
function2( counter-1 );
}
void function2( int counter )
{
if( counter == 0 ) return;
cout << "This is a function 2" << endl;
function1( counter-1 );
}
int main()
{
function1(5);
return 0;
}