That's because you have to either add a call to keyboard input so that the program waits for you to press a key, or run it in its own cmd window.
Ancient Dragon
Achieved Level 70
32,139 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,576
Skill Endorsements: 69
If running in Debug Mode, you can put a "breakpoint" on the last line and the program will pause there.
thines01
Postaholic
2,433 posts since Oct 2009
Reputation Points: 447
Solved Threads: 408
Skill Endorsements: 7