Tag Archives: Pascal’s Triangle

Calculate a row of Pascal’s triangle in C#

Pascal’s triangle starts with a 1 at the top. To construct a new row for the triangle, you add a 1 below and to the left of the row above. After that, each entry in the new row is the … Continue reading

Posted in algorithms, mathematics | Tagged , , , , , , , , , , | 2 Comments

Display Pascal’s triangle in C#

In Pascal’s triangle, each row has a 1 on either end. An entry between the ends is the sum of the two entries above it. Mathematically you can define the Nth entry on row R as: Entry(R, N) = Entry(R … Continue reading

Posted in algorithms, mathematics, printing | Tagged , , , , , , , , | Leave a comment