Given a two-dimensional array of size
n
x
n
(n<=10). Form a one-dimensional array from the elements of the given array located above the secondary diagonal.
Input
The program receives as input the number n <= 10, which is the number of rows and columns in the array. Next, the input stream contains n lines of n numbers that are elements of the array.
Imprint
The program should output a one-dimensional array whose elements are the values of the two-dimensional array elements (separated by a space) located ABOVE the secondary diagonal.
Examples
# |
Input |
Output |
1 |
3
888 29 37
92 888 57
73 75 888
|
888 29 92 |