Login to ask a question from Pattern Printing in C

C program to Print Pascal's triangle


           1

         1   1

       1   2 1

     1   3 3    1

   1  4   6 4   1

 1  5 10   10 5 1

In Pascal's triangle, each number is the sum of the two numbers directly above it.

C program to Print Pascal\'s triangle

#include
int main()
 {
    int rows, coef=1, space, i, j;
    printf("Enter number of rows:\n");
    fflush(stdout);
    scanf("%d", &rows);
    for (i=0; i....
Show More
Previous Question Next Question
🔗

Similar Questions

From Pattern Printing in C · C programming

View All
WhatsApp