Олимпиадный тренинг

Задача 7111. Error


A natural number N is given (N<=15). Fill and display a square two-dimensional NxN array according to the following rule:
- the numbers on the diagonal going from the upper right to the lower left corner are equal to 1; 
- numbers above this diagonal are 0;
- numbers below this diagonal are 2.
 
Each element of the array is separated from another by one space, each line of the array is displayed on a new line
Input and output example
Test No. Input data Imprint
1 4
0 0 0 1 
0 0 1 2 
0 1 2 2 
1 2 2 2