“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:
!["Print Star Pattern Right Inverted Triangle" is a C program using nested for loop. It displays a triangle of star pattern.](https://easycodebook.com/wp-content/uploads/2019/06/inverted-triangle-star-pattern-2.jpg)
“Print Star Pattern Left Inverted Triangle” is a C program using nested for loop. It displays a triangle of star pattern.