Pattern 4 : C program to print Pyramid star pattern

Spread the love

Introduction:

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:

pyramid-pattern-program-using-stars-in-c
Output of Pyramid Pattern program

Similar Star pattern programs:

More C programs :

C Tutorials with simple Examples:

 

Venkat

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

1 Response

  1. June 5, 2021

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

Leave a Reply