For example if some variable lets say..a is greater than 10 then program should close.... i.e "press any key to continue" message appears.
Rohit Phulsunge says- //Some lines of code .......... if(a>10) { printf("\n Press any key to continue"); getch(); exit(0); } ............