Console window is not stable in visual studio using c#. ReadLine()
is not working also. window disappear immediately and I can not see results.
You need to add the following line after your code:
Console.ReadKey();
This will prevent the console from executing the next line until you press any key. In your case, it will simply finish running the code.