// Recurson example
// By DreamVB

#include <iostream>
#include <stdio.h>

using namespace std;
using std::cout;
using std::endl;

void CountNum(int number){
	number--;
	//Output value to screen
	cout << "Value of number is " << number << endl;

	if(number > 0){
		//Call count number.
		CountNum(number);
	}
	cout << "Value of number is now " << number << endl;
}

int main(int argc, char* argv[])
{ 
	CountNum(10);

	system("pause");

	//Ret
    return 0; 
} 
