How to print Pascal’s triangle in C#
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
C#
🤖 Code Explanation
The code above creates a Pascal triangle with a given number of rows.
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
More problems solved in C#
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
![](https://cdn-icons-png.flaticon.com/512/6132/6132221.png)
The code above creates a Pascal triangle with a given number of rows.
Download SpellBox today Download SpellBox for macOS, Windows and VS Code today. Solve any programming or engineering problem with A.I.