Statement
Given an integer- The positions on the  minor diagonal  (from the upper right to the lower left corner) receive 1.
- The positions above this diagonal recieve 0.
- The positions below the diagonal receive 2.
Solution
A blog posting problems and tutorials for blog visitors to practice and gain experience.
 1 .    0 .    2 . 0 .1 .2 and so forth.| n=7 | 0 1 2 3 4 5 6 1 0 1 2 3 4 5 2 1 0 1 2 3 4 3 2 1 0 1 2 3 4 3 2 1 0 1 2 5 4 3 2 1 0 1 6 5 4 3 2 1 0 |