Generally whenever we run console applications once that
execution finished automatically output window will close and return to
application. In this situation if you want to show output window even if
application execution finish we need to add Console.ReadLine()at the end of your code like as shown below