Simple for loop using a range. for i in (1..4) print i," " end print "\n" for i in ... The Ruby for loop is similar to the Python for or the perl foreach .
確定! 回上一頁