List of Star Pattern

Star Pattern


In this article, first, we will see how to use C programming to work with various star pattern programs with the help of examples. In any programming language, star patterns are a common pattern widely used because it helps to improve logical thinking and flow control of loop's knowledge. You must use two or three loops to create a star pattern in the C language. The number of loops depends on the pattern that you need to create. For pattern, a minimum of two is used i.e. one for a row and one for a column. The First loop is called an outer loop(we are saying "i" loop) that shows the rows, and the second loop is called an inner loop(we are saying "j" loop) that shows columns.

 
1) Star Pattern 1 2) Star Pattern 2
***** *
***** **
***** ***
***** ****
***** *****
Click here Click here
3) Star Pattern 3 4) Star Pattern 4
*****         *
****       **
***     ***
**   ****
* *****
Click here Click here
5) Star Pattern 5 6) Star Pattern 6
***** **********
  **** ****    ****
    *** ***        ***
      ** **            **
        * *                *
Click here Click here
7) Star Pattern 7 8) Star Pattern 8
        * *
      ** **
    *** ***
  **** ****
***** *****
  **** ****
    *** ***
      ** **
        * *
Click here Click here
9) Star Pattern 9
  ***      ***
*****  *****
***********
  *********
    *******
      *****
        ***
          *
Click here


Post a Comment

0Comments

Post a Comment (0)