Star Pattern 2 – Inverted half pyramid pattern in C programming language using stars

Spread the love

Inverted half pyramid pattern in C programming language using stars

Inverted half pyramid pattern in C programming language using stars

In this program we will see the inverted half pyramid pattern in C programming or the inverted half triangle pattern.

*****
****
***
**
*

The C program for above inverted half pyramid pattern is as follows:

#include<stdio.h>

int main()
{
    int i,j, no_rows;
    
    printf("Enter number of rows for pattern = ");
    scanf("%d",&no_rows);

 for(i=no_rows; i>=0; i--)
 {
  for(j=0;j<=i;j++)
  {
   printf("*");
  }
  printf("n");
 }
 getch();
     return 0;
}

Number Series Programs in C programmming

Star Pattern Programs in C programmming

Number Pattern Programs in C programmming

Alphabet Pattern Programs in C programmming


Spread the love

Leave a Comment