From: Thescholar Thescholar Date: 2011-02-03T14:41:21+09:00 Subject: For Loop with Steps? Hello I'm new here :) And I already have a noob question. I am wondering how it's possible to iterate through a for loop statement by 5 rather than by 1. Let's suppose I want to count from 0..100. Rather than doing this: 1,2,3,4,5,6,7,8,9,10....97, 98, 99, 100 I would like to count by 5 like this: 0, 5, 10, 15, 20, 25, 30... 90, 95, 100 Anyone knoew how I could achieve this? Thank you very much in advance! And nice to meet you :) -- Posted via http://www.ruby-forum.com/.