Devi fare una fflush(stdin) dopo ogni scanf, oppure:
codice:
while(!getchar());
P.S.: usa i tag CODE, indenta e metti il return 0.