====== 03 for文 ====== for i in 1..3 do print("i=", i, "\n") end print("End") ===== 実行 ===== $ ruby for.rb i=1 i=2 i=3
for i in 1..3 do print("i=", i, "\n") end print("End")
$ ruby for.rb i=1 i=2 i=3