you should include <conio.h> header file.
this header has a function getch(). you can use it before return statements in all programs you write in order to see the result on screen until a key is pressed.
//your code goes here
I sure am this will work if I got your question correctly !!!!