[Practice] Matrix Multiplication - Variable
Problem Definition
Write a Program to perform Matrix Multiplication.
Method
- Define two matrices A and B and receive the number of rows and columns as input from the user.
- Perform the Matrix Multiplication
Sample Input
3
3
1 0 -1
0 -1 1
-1 0 1
1 2 3
2 3 1
3 1 2
Sample Output
-2 1 1
1 -2 1
2 -1 -1
Comments