Write a program in C to generate following pattern using unformatted input/output functions only.
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.
#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 MoreAll Chapters — C programming
Similar Questions
From Pattern Printing in C · C programming
Theory
Theory
C program to print following Pyramid:
Theory
C Program to Print Floyd's Triangle.
Theory
C Program to print half pyramid a using numbers
Theory
Program to print pyramid using numbers
Theory
Program to print full pyramid using *
Theory
Inverted full pyramid using *
Theory
C program to print following Pyramid: