Before the last statement have a user input using scanf, getch / getche so that it does not disappear before you see the output.