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.
Code:
#include <conio.h>
.
.
.
main()
{
//your code goes here
getch();
return 0;
}
I sure am this will work if I got your question correctly !!!!