After wasting too much time searching why my program doesn\'t execute gets() after using scanf(), I found a solution which is to use fflush(stdin) after scanf() to enable ge
Try gets(stdin); instead of
gets(stdin);
fflush(stdin);