Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

start times from 1 in ruby

## with increment of 1
1.upto(10) do |i|
  puts i
end

## with increment defined
1.step(10,2) { |i| puts i } #=> 1
 
PREVIOUS NEXT
Tagged: #start #times #ruby
ADD COMMENT
Topic
Name
9+9 =