You Can use this in your console program:

Code:
system("pause")
use that before "return 0;"