Program Of Star Pattern Print of 5 lines Reverse

Star Pattern 3


Star pattern program in C
This is our first program in C programming language. This C program will print the text
“Hello World!” on the console output screen. In this post we will learn how to 
write a C Program and explore each statements in this C Program and many more.



  /*
      Program : Star Pattern3
      Filename : Star3.c
      IDE Used To Developed : CodeBlocks
      Developed By : Pavito Golui
  */
  #include<stdio.h>
  int main()
   {
        int i, j;

           for(i=5;i>=1;i--)
           {
                for(j=1;j<=5;j++)
                  {
                       if(j>=i)
                          printf(" * ");
                      else
                          printf("  ");
                }
                    printf("\n");     

      }
          return(1);
  
 

Output :


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



Explanation Of Each Statements In The Program:-
To learn any programming language, practical is must important than others factors. First of
all we learn and understand the language and then we implements, each things related to 
the language and explore about it. After all we are interested in making products (Software)
by using that language.


Latest
Next Post
Related Posts