From: botp Date: 2011-02-03T14:58:22+09:00 Subject: Re: For Loop with Steps? On Thu, Feb 3, 2011 at 1:41 PM, Thescholar Thescholar wrote: > I am wondering how it's possible to iterate through a for loop statement > by 5 rather than by 1. try this, for i in (0..100).step(5) p i end then compare this, (0..100).step(5){|i| p i } best regards -botp