“Print Star Pattern Left Inverted Triangle” is a C program using nested for loop. It displays a triangle of star pattern.
/*Write a C Program to print the following Star Pattern ***** **** *** ** * */ #include <stdio.h> int main() { int row, col; for(row=5;row>=1;row--) { for(col=1;col<=row;col++) { printf("*"); } printf("\n"); } return 0; }
This is an image showing sample run and output of star pattern triangle (inverted) c language program: