Tuesday, January 8, 2019

C Program To Print Pattern Of Triangle In Reverse Order

Star pattern triangle reverse

Star pattern of triangle in reverse shape
In this c program we will print a pattern of triangle in reverse shape by using two for loop by nesting.

   /*
      Program : Star Pattern Of Triangle Shape Reverse
      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<=i; j++)
               {
                   printf(" * ");
               } 
              printf("\n");
         }
      return (0);
   }
 

Output :

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




0 comments:

Welcome to you in All Coding Help