Ok ... devi pulire il buffer di input dopo la scanf ... aggiungi

while(getchar()!='\n');