for i in (1..3) for j in (1..3) puts "#{i} x #{j} = #{i * j}" end puts end
列挙された要素に対して、処理を繰り返して実行します。