This program generates Pascal's triangle up to the nth row. The border numbers are 1. The interior numbers are the the sum of the two numbers above it.