How can I write a loop in Ruby that counts down, similar to the following C-style for loop?
for
for (i = 25; i >= 0; i--) { print i; }
downto is fine, but there is also the more generic step.
downto
step
25.step(0, -1){|i| puts i}