As for why it's going into an infinite loop, it's because scanf() is refusing to read the input (and ... The safest way in C is to use the fgets() function.
確定! 回上一頁