第 10 行:印出加總後 sum 的值,得到總捐款金額的計算結果。 5-3 break 敘述當程式遇到 break 敘述時,將會直接跳出 for 迴圈或 while 迴圈,不再執行. while...else.
確定! 回上一頁