Created
December 24, 2010 18:08
-
-
Save camilleroux/754428 to your computer and use it in GitHub Desktop.
A Ruby code to draw a Christmas Tree in less than 140 character
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((1..20).to_a+[6]*4).each{|i|puts ('#'*i*2).center(80)};puts;puts 'Merry Christmas'.center(80) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is highly confusing, you dont have any explanations and the "center" method is undefined