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