Star patterns set 4

Star pattern set 4
Star pattern set 4

If you are in the coders world you must have a knowledge of printing patterns. In coding interview interviewer may ask you print any number pattern , alphabet pattern or an character patterns. We recommend you to follow our patterns series so you will feel comfortable with printing patterns. In this blog post you will find set 4 of star patterns.

We recommend you to solve other types patterns as well –

 Click on the pattern and you will get redirected to the code.

Pattern 1

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

Code for pattern 1

Pattern 2

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

Code for pattern 2

Pattern 3

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

Code for pattern 3

Pattern 4

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

Code for pattern 4

Pattern 5

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

Code for pattern 5

Leave a Reply