write the getch(); at the end of the program.
getch(); is used for get one character from the user.
by doing that after execution of the program it will hold the screen and when you press any key then it will go to source code.