If you are using Visual Studio, then you can use "Start Without Debugging" in the Debug menu.
It will automatically write "Press any key to continue . . ." to the console for you upon completion of the application and it will leave the console open for you until a key is pressed.