Pattern 4 : C program to print Pyramid star pattern


Write a C Program to print the pyramid pattern using stars. The patterns contains the stars and spaces.

Here is how the output pattern should look like

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

Pyramid Pattern Explanation :

This program is very similar to our last program i.e Triangle Star pattern. The main difference between these two programs is Spaces. By adjusting the spaces, we will get different types of patterns in C programming so try to play with these programs.

Pyramid Pattern Program : 


Output of Pyramid Pattern program

Similar Star pattern programs:

More C programs :

C Tutorials with simple Examples:



Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

2 Responses

  1. […] We also discussed another way to create Pyramid Pattern in the following article – Pattern 4 : C program to print Pyramid star pattern – SillyCodes […]

  2. […] Pattern 4: Pyramid Star Pattern Program […]

Leave a Reply