-3

Console window is not stable in visual studio using c#. ReadLine() is not working also. window disappear immediately and I can not see results.

Dmitry Bychenko
  • 180,369
  • 20
  • 160
  • 215
Bilal Ashraf
  • 77
  • 1
  • 3

1 Answers1

2

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.

Ethan Ollins
  • 108
  • 1
  • 7
  • `ReadLine()` will wait for `Enter`. `ReadKey()` will wait for any key at all. how does that help? – Noctis Oct 16 '16 at 23:08