#include "stdafx.h"
//! this is where the count starts
#define min 1
//! this is my n
#define max 5
//! function signature
int mynumber( int a );
int _tmain(int argc, _TCHAR* argv[])
{
int i = ( int ) min ;
return mynumber( i );
}
//! my number definition
int mynumber( int a )
{
//! print the current value of a
printf("\n%d ", a );
if( a == (int) max )
{
//! do not do anything we have reached the max n
}
else
{
//! call this function recursively
mynumber( a + 1 );
}
//return to the caller here it is main
return a;
}