Skip to content
Home » Inverse Star Pattern Program in C

Inverse Star Pattern Program in C

Learn about Inverse Star Pattern Program in C in the below code example. Also refer the comments in the code snippet to get a detailed view about what’s actually happening.

Inverse Star Pattern Program in C

Pattern: To print the below pattern in C programming then run the below code.

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

Program:

#include<stdio.h>
int main()
{
  int i,j;

  for(i=5;i>=1;i--)
  {

    for(j=i;j>=1;j--)
    {
       printf("* ");
    }

    printf("\n");
  }

  return 0;
}

Output:

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

Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.

Similar Codes :
Pattern Program 15 in C
Pattern Program 14 in C