Print Star Pattern Left Inverted Triangle

By | June 19, 2019

“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.

“Print Star Pattern Left Inverted Triangle” is a C program using nested for loop. It displays a triangle of star pattern.

Leave a Reply

Your email address will not be published. Required fields are marked *