From: Josef 'Jupp' Schugt Date: 2003-06-09T05:52:58+09:00 Subject: Re: cast iron Christmas tree stand Happy Whitsun, * Shashank Date; 2003-06-08, 18:18 UTC: > I know Ruby is powerful, but I did not know you could produce "cast > iron Christmas tree stand"s with it. If it can produce Xmas trees so it should be able to create a stand as well: height = 20 size = height * 3 / 4 tree = [] size.times {|i| tree.push(' '*(size-i) + '/'*i + '\\'*i) } (height-size).times {|i| tree.push ' ' * (size-2) + '| |'} puts tree 1:3 seems to be a nice ratio for Xmas trees. Josef 'Jupp' Schugt