visual studio console closing immediately code example
Example 1: how to stop window from terminating c# visual studio
Console.ReadLine(); //add this to the end of the program and the terminal will not close until another key is entered
Example 2: visual studio console closes too fast
Console.ReadLine();