C Program to Print Pascal's Triangle
Write a C Program to Print Pascal's Triangle Table of Contents Problem Defination Source Code Output Program What is Pascal's Triangle ? Pascal's Triangle is a triangular array of binomial co-efficient. It is constructed by summing adjacent elements in preceding rows. Pascal’s triangle can be used as an instance of binomial coefficient and binomial theorem. Problem Definition We have to write a C program that will print pascal's triangle. Solution/Source Code Here is the Source C code to print Pascal's Triangle. Output results are also shown below. #include <stdio.h> int main() { int rows, co = 1, space, i, j; printf("Enter the number of rows: "); // total numbers of rows in pascal's triangle scanf("%d", &rows); for (i = 0; i < ro...