3.upto(7) do |i| next if i == 5 puts i end. Output: 3 4 6 7. Ruby has other control keywords that you should be aware of: break: Ends the loop, ...
確定! 回上一頁