將上面程式碼儲存到檔案: for-loop-range.rb 中,執行上面程式碼,得到以下結果- F:\worksp\ruby>ruby for-loop-range.rb 輸入一個數位: 8 1 2 3 4 5 6 7 8 ...
確定! 回上一頁