After I run a program, I always need to add Console.ReadLine(); to the end in order for the program results to not go away. If I were to code:
static void Main(string[] args) {
Console.WriteLine("Hello World!");
Console.ReadLine(); // I need this for the console to stay open.
}
I noticed in watching youtube videos that some are able to run their code without the Console.ReadLine() method. How do I go about doing this? Thanks!