(1..10).each do |i|
puts "<img src=\"images/image-#{i}.png\" />"
end

Ruby 便利。