PROGRAMMING:The basic operation of matrix
Write a program, according to the two integers input, construct two matrices (a, b) by random function in turn, the number of rows and columns of the two matrices are determined by the two integers input, the random seed is the sum of the two integers input (the sum of the number of rows and columns), the form of random number is rand ()% 7-3 (generate random integers between - 3 and 3), The matrix is assigned values according to row priority (first assign values to matrix A, then assign values to matrix B), and then calculate the product or sum of the two matrices (C = a * B | C = a + b). Note: the product of the two matrices is given priority, and if the product is not enough, the sum is obtained, and then the transpose of the above matrix (c) (that is, the row and column elements exchange of the matrix: CIJ < -- > CJI) is obtained, Finally, output the obtained matrix (output format: each integer occupies 3 widths, right aligned)
###Input format:
Two integers representing the number of rows and columns of the first two matrices.
###Output format:
The output of a matrix is either the transpose of the product of two matrices or the transpose of the sum of two matrices.
###Input sample 1:
```in
2 3
```
###Output sample 1:
In this case, two 2x3 matrices can not be multiplied, but can only be added. The sum is also a 2x3 matrix. After transposing, it is a 3x2 matrix
```out
-2 0
1 -6
-1 0
```
###Input sample 2:
```in
3 3
```
###Output sample 1:
In this case, two 3x3 matrices can be multiplied, the product is also a 3x3 matrix, and the transposed matrix is still a 3x3 matrix
```out
-2 -1 -6
22 -7 -3
0 -3 -9
```
answer:If there is no answer, please comment
###Input format:
Two integers representing the number of rows and columns of the first two matrices.
###Output format:
The output of a matrix is either the transpose of the product of two matrices or the transpose of the sum of two matrices.
###Input sample 1:
```in
2 3
```
###Output sample 1:
In this case, two 2x3 matrices can not be multiplied, but can only be added. The sum is also a 2x3 matrix. After transposing, it is a 3x2 matrix
```out
-2 0
1 -6
-1 0
```
###Input sample 2:
```in
3 3
```
###Output sample 1:
In this case, two 3x3 matrices can be multiplied, the product is also a 3x3 matrix, and the transposed matrix is still a 3x3 matrix
```out
-2 -1 -6
22 -7 -3
0 -3 -9
```
answer:If there is no answer, please comment