- 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
*
* *
* * *
* * * *
* * * *
* * * *
* * * *
* * * *
* * * *
* * *
* *
*
1
1 2
1 2 3
1 2 3 4
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
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