SyntaxFix
Write A Post
Hire A Developer
Questions
Here's another, perhaps more familiar-looking way to do it:
for i in (0..10).step(2) do puts i end