Theory
C program to print following Pyramid:
*
**
***
****
#includeint main() { int i,j,n; printf("Enter the number of rows:\n"); scanf("%d",&n); for(i=0; i< n; i++) { for(j=0;j<=i;j++) { printf("*"); } printf("\n"); } return 0; }
From Pattern Printing in C · C programming
C program to print following Pyramid:
Inverted full pyramid using *
Write a program in C to generate following pattern using unformatted input/output functions only.
Program to print pyramid using numbers
C program to print following Pyramid:
C Program to print half pyramid a using numbers
C program to Print Pascal's triangle
C Program to Print Floyd's Triangle.