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

Задача 7112. 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 lower left to the upper right corner are equal to 1; 
- numbers below this diagonal are 0;
- numbers above 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
Sample Input and Output
Test No. Input data Imprint
1 4
2 2 2 1 
2 2 1 0 
2 1 0 0 
1 0 0 0