exercism-c/pascals-triangle
Blizzard Finnegan b92478b09c
Init commit
Leap, Difference of Squares, Grains, Collatz Conjecture, Queen Attack,
Darts, Hamming, and Space Age completed yesterday.

Binary and Linked List completed today.
2025-01-11 18:45:47 -05:00
..
.exercism Init commit 2025-01-11 18:45:47 -05:00
test-framework Init commit 2025-01-11 18:45:47 -05:00
HELP.md Init commit 2025-01-11 18:45:47 -05:00
makefile Init commit 2025-01-11 18:45:47 -05:00
pascals_triangle.c Init commit 2025-01-11 18:45:47 -05:00
pascals_triangle.h Init commit 2025-01-11 18:45:47 -05:00
README.md Init commit 2025-01-11 18:45:47 -05:00
test_pascals_triangle.c Init commit 2025-01-11 18:45:47 -05:00

Pascal's Triangle

Welcome to Pascal's Triangle on Exercism's C Track. If you need help running the tests or submitting your code, check out HELP.md.

Instructions

Compute Pascal's triangle up to a given number of rows.

In Pascal's Triangle each number is computed by adding the numbers to the right and left of the current position in the previous row.

    1
   1 1
  1 2 1
 1 3 3 1
1 4 6 4 1
# ... etc

Source

Created by

  • @deathsec

Contributed to by

  • @bcc32
  • @Gamecock
  • @guygastineau
  • @h-3-0
  • @patricksjackson
  • @QLaille
  • @ryanplusplus
  • @wolf99

Based on

Pascal's Triangle at Wolfram Math World - http://mathworld.wolfram.com/PascalsTriangle.html