C-Patterns

 

 

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

Code of the above pattern

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

Code of the above pattern

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

Code of the above pattern

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

Code of the above pattern

1
2*2
3*3*3
4*4*4*4
5*5*5*5*5
4*4*4*4
3*3*3
2*2
1

Code of the above pattern

1
10
101
1010
10101
101010
1010101
10101010
101010101

Code of the above pattern

1 
2 4 
1 3 5 
2 4 6 8 
1 3 5 7 9 
2 4 6 8 10 12 
1 3 5 7 9 11 13 
2 4 6 8 10 12 14 16 
1 3 5 7 9 11 13 15 17

Code of the above pattern

1 
2 10 
3 11 18 
4 12 19 25 
5 13 20 26 31 
6 14 21 27 32 36 
7 15 22 28 33 37 40 
8 16 23 29 34 38 41 43 
9 17 24 30 35 39 42 44 45

Code of the above pattern

            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

Code of the above pattern

    1
   123
  12345
 1234567
123456789
 1234567
  12345
   123
    1

Code of the above pattern

1 
2 4 
3 6 9 
4 8 12 16 
5 10 15 20 25 
6 12 18 24 30 36 
7 14 21 28 35 42 49 
8 16 24 32 40 48 56 64 
9 18 27 36 45 54 63 72 81

Code of the above pattern

1                1
12              21
123            321
1234          4321
12345        54321
123456      654321
1234567    7654321
12345678  87654321
123456789987654321

Code of the above pattern

1               1
12             21
123           321
1234         4321
12345       54321
123456     654321
1234567   7654321
12345678 87654321
12345678987654321

Code of the above pattern

ABCDEFGHIHGFEDCBA
ABCDEFGH HGFEDCBA
ABCDEFG   GFEDCBA
ABCDEF     FEDCBA
ABCDE       EDCBA
ABCD         DCBA
ABC           CBA
AB             BA
A               A

Code of the above pattern

1 
2 3 
4 5 6 
7 8 9 10 
11 12 13 14 15 
16 17 18 19 20 21 
22 23 24 25 26 27 28 
29 30 31 32 33 34 35 36 
37 38 39 40 41 42 43 44 45

Code of Floyd’s triangle

      1 
     1 1 
    1 2 1 
   1 3 3 1 
  1 4 6 4 1 
 1 5 10 10 5 1 
1 6 15 20 15 6 1

Code of pascals triangle