You are viewing a single comment's thread. Return to all comments →
(1..n).each { |i| puts "#{'#' * i}".rjust(n)}
That seems much easier.
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
That seems much easier.