Miscellaneous pattern printing in c in c programming

03 Sep 2022 Balmiki Mandal 0 C Programming

Miscellaneous Pattern Printing in C Programming

Hollow Diamond Pattern

markdown
   *
  * *
 *   *
*     *

 markdown

*       *
 *     *
  *   *
   * *
    *

Number Pattern with Spaces

   1
  2 2
 3   3
4     4
 5   5
  6 6
   7
 

Zigzag Pattern

markdown

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

 

Inverted Hollow Pyramid Pattern

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

Butterfly Pattern

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

Solid Diamond Pattern

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

Number Pyramid Pattern

     1
    121
   12321
  1234321
 123454321

Hourglass Pattern

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

Checkerboard Pattern:

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

 Hollow Square Pattern

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

 

Rhombus Pattern:

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

 

Alphabet Pattern (A-Z): For example, if you want to print the letter 'E', it would look like:

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

Hollow Pyramid Pattern:

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

BY: Balmiki Mandal

Related Blogs

Post Comments.

Login to Post a Comment

No comments yet, Be the first to comment.