You should check the return value of scanf , which tells you the number of data that are read into the passed arguments, here it is k .
確定! 回上一頁