Scegli tu:

1)metti 2 getchar(); alla fine del codice
getchar();
getchar();

2)oppure INCLUDI il file #include<process.h>
che contiene (sotto windows) la funzione system()
e poi fai come ha detto hmesfet che odia gli spazzini... ed anche il tuo prof :master: