A C++ program to display numbers in order