I recently came upon the scary idea that Integer.count loops in Ruby start from 0 and go to n-1 while playing with the Facebook Engine
Integer.count
0
n-1
There is of course the while-loop:
while
i = 1 while i<=10 do print "#{i} " i += 1 end # Outputs: 1 2 3 4 5 6 7 8 9 10