- 1

Why when I run the build does the output screen not stay open? At the same time it ends with a message "ConsoleApp1.exe has exi

5th Jul 2017, 11:30 PM
James Lanier
James Lanier - avatar
2 ответов
+ 8
The console window closes as soon as your code is done working. A workaround for this is to write Console.ReadLine() as your last line of code. That way, it won't be done until you press Enter.
6th Jul 2017, 1:31 AM
Tamra
Tamra - avatar