Creating Pascal's Triangle in C#: for computer science at GCSE, IGCE, A Level and programmers
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUZyfGAlS2_bNqU6QS1i8y9e7Kpiyy8JTs4SS9vngzArJbvUlP_IWPIxoUPx7a7uvEtT7393CqKMFJA_-HV45JzGgiljkG55xrnDh19fOzXKeLV-TTU1KZorDiNSIloV6mbWdpkOO9proK9ojUUNOVpFuIfdoI6rf8q7sQDzvefTzbiFL8Ht6-6AG8wQ/s16000/Creating%20Pascal's%20Triangle%20in%20C%23.gif)
Creation of Pascal's Triangle in C# The above animation is produced in C# programming language for students who do computer science at GCSE, IGCSE, IB and A Level. The code snippet consists of four major function that collectively produce the Pascal's Triangle. They are: A factorial function A function to generate combinations A function to generate Pascal's Triangle in the correct format The main function to run the function in step 3). The code snippet is given below; you can practise it interactively by providing the function, Pascal's Triangle(n) , the parameter required - the number of rows. Since the formatting is programmed up to 10 rows, please use a number below 10.