how to stop window from terminating csharp visual studio

Code Example - how to stop window from terminating csharp visual studio

                
                        Console.ReadLine(); //add this to the end of the program and the terminal will not close until another key is entered