// Recurson example 2
// Date 23:50 25/10/2016
// By Ben a.k.a DreamVB

#include <iostream>
using namespace std;
using std::cout;
using std::endl;

void CountTo(int start,int end){
	//Display
	cout << start << endl;
	//Check value
	if (start >= end){return;}
	//INC start
	start++;
	//Recall procedure
	CountTo(start,end);
}

int main(int argc, char *argv[]){
	int a = 0;
	int b = 0;

	cout << "Enter a start value and a end value : ";
	cin >> a >> b;
	//Call procedure
	CountTo(a,b);

	system("pause");
	return 0;
}