You can add a readln at the end to make the program wait or run it from a Dos prompt.