PROGRAMMING:Matrix multiplier
Write a program to find the result of matrix multiplying by a number. It is required to input the number of rows and columns of the matrix through the keyboard, input each data of the matrix through the keyboard, and finally input the number to be multiplied to complete the matrix multiplication (each element of the matrix is multiplied by this number), and finally output the result of the matrix after the operation.
###Input format:
The number of rows and columns of the first row input matrix are separated by spaces.
The second line of input matrix elements, separated by spaces
On the third line, enter the data to multiply
###Output format:
Output multiplied matrix, matrix row output for a row, separated by spaces in the middle, each element in front of a space.
###Input example:
Here is a set of inputs. For example:
```in
2 3
2 3 5 1 4 9
two
```
###Output example:
The corresponding output is given here. For example:
```out
4 6 10
2 8 18
```
answer:If there is no answer, please comment
###Input format:
The number of rows and columns of the first row input matrix are separated by spaces.
The second line of input matrix elements, separated by spaces
On the third line, enter the data to multiply
###Output format:
Output multiplied matrix, matrix row output for a row, separated by spaces in the middle, each element in front of a space.
###Input example:
Here is a set of inputs. For example:
```in
2 3
2 3 5 1 4 9
two
```
###Output example:
The corresponding output is given here. For example:
```out
4 6 10
2 8 18
```
answer:If there is no answer, please comment