# Star Pyramid and patterns in C programming

## Star Pyramid and patterns in C programming

Contents

In this Post We Will Explain About is Star Pyramid and patterns in C programming With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to c pattern programs with solutions Example

In this post we will show you Best way to implement C Programming Code To Create Pyramid and Pattern, hear for c program to print patterns of numbers and stars in a pyramid shape with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Free Live Chat for Any Issue

### pattern programs in c

Star Pyramid and patterns in C,There are a series of * or any some other character used to make some more pattern or any idea mathes geometrical shape Like as – square patterns, triangle patterns(Pyramid), rhombus patterns, heart patterns etc.

Also Read This π   how to convert string to char c++ ?

### Required knowledge

• Basic C programming
• Operators
• If else
• For loop
• Nested loop

```printf("\n");
for(int i=1;i<=1;i<=n;i++)
{
printf("%d : ",i);
for(int sp=i;sp<=n-1;sp++)
printf("");
for(int j=1;j<=i;j++)
printf("* ");
for(int sp=i;sp<n+2;sp++)
printf("  ");
for(int sp=i;sp<=n-1;sp++)
printf(" ");
for(int j=1;j<=i;j++)
printf("* ");
for(int sp=i;sp<=n+2;sp++)
printf("  ");
for(int sp=i;sp<=n-1;sp++)
printf(" ");
for(int j=1;j<=i;j++)
printf("* ");

printf("\n");
}
```

## List of star pattern programming exercises

```*****
*****
*****
*****
*****
```

```*****
*   *
*   *
*   *
*****
```

```*****
** **
* * *
** **
*****
```

### Rhombus Star Pattern

```    *****
*****
*****
*****
*****
```

### Hollow Rhombus Star Pattern

```    *****
*   *
*   *
*   *
*****
```

```*****
*****
*****
*****
*****
```

```*****
*   *
*   *
*   *
*****
```

```*
**
***
****
*****
```

```*
**
* *
*  *
*****
```

```    *
**
***
****
*****
```

```    *
**
* *
*  *
*****
```

```*****
****
***
**
*
```

```*****
*  *
* *
**
*
```

### Heart Star Pattern

```  *****     *****
*******   *******
********* *********
*******************
*****************
***************
*************
***********
*********
*******
*****
***
*
```

```    *
***
*****
*******
*********
*******
*****
***
*
```

### Hollow Diamond Star Pattern

```**********
****  ****
***    ***
**      **
*        *
*        *
**      **
***    ***
****  ****
**********
```

### Inverted Pyramid Star Pattern

```*********
*******
*****
***
*
```

### X Star Pattern

```*       *
*     *
*   *
* *
*
* *
*   *
*     *
*       *
```

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example

Also Read This π   C# Named Arguments Tutorial with Examples

Example

I hope you have Got What is c program to print patterns of numbers and stars in a pyramid shape And how it works.I would Like to have FeedBack From My Blog(Pakainfo.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(Pakainfo.com) Are Most Always Welcome.