From: Carl Date: 2007-11-21T13:20:03+09:00 Subject: Re: for loop Martin Durai writes: > Consider the following for loop in 'C' or 'c++' or 'java' > > for (i=namespaceEnd - 1; i >= 0; i--) > > Please help me with code to do the same functionality in ruby > -- > Posted via http://www.ruby-forum.com/. How about this: (namespace_end - 1).downto(0) { |x| puts x } Hope that helps, Carl.