C program to print diamond of asterisks

This C program prints a pattern which looks like a diamond, using asterisks (*). The user enters the number of rows as input and the program prints a diamond of entered number of rows using asterisks.

This program is related to patterns printing in C.

Program: C program to print diamond using asterisks

Output: Diamond of asterisks (*)

Enter number of rows: 7
      *
     ***
    *****
   *******
  *********
 ***********
*************
 ***********
  *********
   *******
    *****
     ***
      *

Share your code and queries in the comments.

Share this code with your programmer friends.

Follow us on twitter.

About ᴾᴿᴼᵍʳᵃᵐᵐᵉʳ

Linux and Python enthusiast, in love with open source since 2014, Writer at programming-articles.com, India.

View all posts by ᴾᴿᴼᵍʳᵃᵐᵐᵉʳ →

Leave a Reply

Your email address will not be published. Required fields are marked *