Create a class Matrix to represent a N * N matrix.
Provide public member functions that perform the following tasks:
The first line has an integer N (1<=N<=50), which means the size of the matrix. The total number of elements in the matrix is thus N * N.
For the next 2N lines:
All elements in matrix are in the range of 0-9.
All elements in the same line are separated by a space.
Output the answer of each task.
In the matrix, all of the integers in the same line are separated by a space, and a newline character at the end of the line.
Ex:
1 2 3"\n"
4 5 6"\n"
7 8 9"\n"
Note : In main function, there is already a newline character between each matrix.