unknown wrote in post #1138260:
> You don't need an additional loop, just print the '\n' after you have
> finished printing the full line, i.e. after the loop.
> I commented out the lines you want to get rid of.
>
> n = 1
> while n <= 5
>   1.upto(n) do |i|
>     #1.upto(n) do |i|
>       print i
>     end
>     print "\n"
>     n += 1
>   #end
> end
>
>
Your answer helpful for me.

Thank you very much.

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