Star Pattern Problems

These are star pattern exercises. These are used for logic building. These also help the programmer to get more flexibility over control statements. In this exercise, the difficulty level of the problem is increasing as they move to next problems.

Many good programmers recommend other programmers to solve these problems because not only it increases logic but also the provide more control over control statements.

Star Problem Exercise

Here are star pattern exercises:

*****                   ************                   *****           
*****                   ************                   *   *
*****                   ************                   *   *
*****                   ************                   *   *
*****                   ************                   *****
Square                    Rectangle                Hollow square
 star                       Star                        star
pattern                    pattern                    pattern
 *****                      *****                            *****
  *****                      *   *                          *****
   *****                      *   *                        *****
    *****                      *   *                      *****
     *****                      *****                    *****
    Rhombus                 Hollow Rhombus          Mirrored Rhombus
      Star                       Star                    Star
    pattern                    pattern                 Pattern
     *                          *                        *****
     **                         **                       ****
     ***                        * *                      ***
     ****                       *  *                     **
     *****                      *****                    *
Mirrored Right              Hollow right         Inverted Right Triangle
Triangle Star               Triangle star             Star Pattern 
   Pattern                  Star Pattern                                        
      *****                     *****                    ******
      *  *                       ****                    *   * 
      * *                         ***                    *  *
      **                           **                    * *   
      *                             *                    *
Hollow Inverted           Inverted Mirrored        Hollow Inverted 
 Right Triangle             Right Triangle         Mirrored Right
  Star Pattern               Star Pattern       Triangle Star Pattern
       *                           *                   *********
      ***                         *  *                  *******
     *****                       *    *                  *****
    *******                     *      *                  ***
   *********                   **********                  *
Pyramid Star                 Hollow Pyramid        Inverted Pyramid
    Pattern                   Star Pattern           Star Pattern
                                **********        
                                 *      *
                                  *    *           
                                   *  *
                                    *
                              Hollow Inverted
                                Pyramid Star
                                   Pattern 
           *                                          *   
           **                                        **         
           ***                                      ***
           ****                                    ****
           *****                                  *****
           ****                                    ****
           ***                                      ***
           **                                        **
           *                                          *
       Half Diamond                       Mirrored half Diamond  
       Star Pattern                             Star Pattern
                *                           *********** ************
               ***                          **********   ***********
              *****                         *********     **********  
             *******                        ********       *********
            *********                       *******         ********
             *******                        ********       *********
              *****                         *********     **********
               ***                          **********   ***********
                *                           *********** ************
          Diamond Star                          Hollow Diamond 
            Pattern                              Star Pattern
                *                               *               *      
                *                                 *           *
                *                                   *       *
                *                                     *   *
         ***************                                * 
                *                                     *   *
                *                                   *       *
                *                                 *           *
                *                               *               *
           Plus Star                             Cross (X) Star
            Pattern                                  Pattern

4 thoughts on “Star Pattern Problems”

    1. In this question, we are assuming that the number of columns are decided based on the number of rows.

      If row is even, the columns = rows – 1

      If row is odd, the columns = rows

Leave a Reply

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

Share via
Copy link
Powered by Social Snap