## with increment of 1 1.upto(10) do |i| puts i end ## with increment defined 1.step(10,2) { |i| puts i } #=> 1