C Programming Code Examples C > Pyramid Patterns Code Examples C Program to Print Inverted Pyramid C Program to Print Inverted Pyramid #include<stdio.h> int main() { int x, y; char ch = '*'; for (x = 4; x >= 0; x--) { printf("\n"); for (y = 0; y < x; y++) printf("%c", ch); } return(0); }