![License](https://camo.githubusercontent.com/0ae1d793a37bb449e3b065cae494fc2752e662f27a49e5ce39ee299f8f003daf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f466168696d4642412f7061747465726e2d7072696e74696e672d6a6176613f7374796c653d666f722d7468652d6261646765)
- Number of lines = number of rows = number times the outer loop will run
- Identify for every row numbers, how many columns are there or types of elements in the column
- What do you need to print
- Try to find the formula relating rows and columns
Patterns Covered Here (Using Java)
* * * *
* * * *
* * * *
* * * *
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
5 4 3 2 1 2 3 4 5
4 3 2 1 2 3 4
3 2 1 2 3
2 1 2
1
4 4 4 4 4 4 4 4 4
4 3 3 3 3 3 3 3 4
4 3 2 2 2 2 2 3 4
4 3 2 1 1 1 2 3 4
4 3 2 1 0 1 2 3 4
4 3 2 1 1 1 2 3 4
4 3 2 2 2 2 2 3 4
4 3 3 3 3 3 3 3 4
4 4 4 4 4 4 4 4 4