A repo for the pattern programs I do.
-
Right-Angled Triangle Pattern
* * * * * * * * * * * * * * * -
Inverted Right-Angled Triangle
* * * * * * * * * * * * * * * -
Pyramid Pattern
* * * * * * * * * * * * * * * -
Diamond Pattern
* * * * * * * * * * * * * * * * * * * * * * * * * -
Pascal's Triangle
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 -
Number Pyramid
1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 5 6 7 8 9 8 7 6 5 -
Number Diamond
1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 1 2 1 1 -
Hourglass Pattern
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * -
Hollow Diamond
* * * * * * * * * * * * * * * * -
Checkerboard Pattern
* * * * * * * * * * * * * * * * * * * * * * * * * -
Number Wave
1 2 3 4 5 4 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 1 2 1 1 -
Floyd's Triangle
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 -
Arrowhead Pattern
* * * * * * * * * * * * * * * * -
Hollow Square
* * * * * * * * * * * * * * * * -
Zigzag Number Pattern
1 2 3 4 5 10 9 8 7 6 11 12 13 14 15 20 19 18 17 16 -
Binary Triangle
1 0 1 1 0 1 0 1 0 1 1 0 1 0 1