Published on: 12th Nov 2010    |   Last Updated on: 24th Nov 2011

Pyramid Patterns in C


Programs :


* * * * *
* * * * *
* * * * *
* * * * *
* * * * *_
Pattern 1 - Click here...
 * 
 * * 
 * * * 
 * * * *
 * * * * *_
Pattern 2 - Click here...
         *
       * *
     * * *
   * * * *
 * * * * *_
Pattern 3 - Click here...
 * * * * *
   * * * *
     * * *
       * *
         *_
Pattern 4 - Click here...
 * * * * *
 * * * *
 * * *
 * *
 *_
Pattern 5 - Click here...
     *
    * *
   * * *
  * * * *
 * * * * *_
Pattern 6 - Click here...
         *
       * *
     * * *
   * * * *
 * * * * *
   * * * *
     * * *
       * *
         *_
Pattern 7 - Click here...
Enter number of rows: 5

1
2 3
4 5 6
7 8 9 10
11 12 13 14 15_
Pattern 8 - Click here...
Enter number of rows: 5

          0          
        1 0 1        
      2 1 0 1 2      
    3 2 1 0 1 2 3    
  4 3 2 1 0 1 2 3 4  
5 4 3 2 1 0 1 2 3 4 5_
Pattern 9 - Click here...
    1    
   2 2   
  3 3 3  
 4 4 4 4 
5 5 5 5 5_
Pattern 10 - Click here...
Enter number of rows: 5
    1    
   1 2   
  1 2 3  
 1 2 3 4 
1 2 3 4 5_
Pattern 11 - Click here...
        1    
      1 2 3
    1 2 3 4 5
  1 2 3 4 5 6 7
1 2 3 4 5 6 7 8 9_
Pattern 12 - Click here...
 A B C D E F G G F E D C B A
   A B C D E F F E D C B A
     A B C D E E D C B A
       A B C D D C B A
         A B C C B A
           A B B A
             A A_
Pattern 13 - Click here...
AAA AAB AAC ABA ABB
ABC ACA ACB ACC BAA
BAB BAC BBA BBB BBC
BCA BCB BCC CAA CAB
CAC CBA CBB CBC CCA
CCB CCC_
Pattern 14 - Click here...

Link this post on your Blog/Website :

Follow us on :   Technoexam on facebook Technoexam on twitter Technoexam on linkedin Technoexam on youtube