當 i 等於 6 時,才跳出 while 迴圈,所以 while 迴圈正確執行完畢,沒有執行 break,所以印出「1、 2、3、4、5」與「while 迴圈正常結束」。 使用 else 進行質數判斷, ...
確定! 回上一頁