Jaimin Pandya wrote in post #1137849:

> If I want to do this program without array, How can I do this?
>
>

 1.upto(6) { |i| puts "6 5 4 3 2 1"[2*(6-i)..12] }

-- 
Posted via http://www.ruby-forum.com/.