I need help writing a for-loop that will achieve the following pattern a certain number of times. In the example below, the number is 4 (determined by the leading | in pattern:
*****************| 222222
*****************0 2
****************0 0 2
************| 222222
************0 2
***********0 0 2
*******| 222222
*******0 2
******0 0 2
**| 222222
**0 2
*0 0 2
222222