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.