Objective: Create an entire* Perl script, in as few characters as possible, that outputs the first 34 rows of Pascal's Triangle. The point is to generate the correct answer with the smallest amount of code.
Required output: You program should produce this, and nothing else.
Other Stuff: Bonus points for doing this in Perl! (Bonus points are good!) If you want to try it in another language, you are more than welcome to. To submit your entry, reply to this post and paste your code in "spoiler" tags. This challenge was originally create by the wonderful people at www.codegolf.com.
*Note: We are looking for a complete program - not just a subroutine. Someone should be able to paste your code into a file, save it, and run it with "perl filename.pl".
Have fun!
This post has been edited by jumptrooper: 15 February 2011 - 05:19 PM

New Topic/Question
Reply



MultiQuote







|