//Green line and line having double back slash are comments
//* function within function Logic is one of the beneficial example for recursion*/
#include < stdio.h > //preprocessor directive contain all predefine function //codes
main(void) // Main start here
{
int index;
index = 8;
CountindexDown(index);//function call
} //Main Ends here
CountindexDown( int count) //Definition of function
{
count--;
printf("The value of the count is %d\n",count);
if (count > 0)
CountDown(count);
printf("Current value of count is %d\n",count);
}
/*To verify the result or output paste the code in codepad area and compile or run this*/
//* function within function Logic is one of the beneficial example for recursion*/
#include < stdio.h > //preprocessor directive contain all predefine function //codes
main(void) // Main start here
{
int index;
index = 8;
CountindexDown(index);//function call
} //Main Ends here
CountindexDown( int count) //Definition of function
{
count--;
printf("The value of the count is %d\n",count);
if (count > 0)
CountDown(count);
printf("Current value of count is %d\n",count);
}
/*To verify the result or output paste the code in codepad area and compile or run this*/