Pascal's Triangle

Pascal's Triangle is a useful number theory object. There is a good site with lots of information about it here.

This applet will show you however many rows of Pascal's Triangle that you wish to see.
But since it doesn't use arrays (just recursion), you better not enter a number greater than 30, unless you have a really fast computer.

This new version uses 2D arrays instead so rows are virtually limitless.

If the triangle appears crooked, it's because you don't have a fixed width font on your computer (or you have document specified fonts turned off in your browser preferences).



This is my first applet, so don't gimme any grief. (I wrote this in 1998,)

Source