Ruby 中的迴圈用於執行相同的程式碼塊指定的次數。 ... #!/usr/bin/ruby $i = 0 $num = 5 begin puts("Inside the loop i = #$i" ) $i +=1 end while ...
確定! 回上一頁