Implement a program to perform matrix multiplication.
MediumProblem Statement
Implement a program to perform matrix multiplication.
Sample Input
Two matrices of size 2x2.
Sample Output
Resultant matrix after multiplication: 19 22 43 50
Limits
Time: 2s · Memory: 256 MB
Code Editor
00:00
#include <iostream>
int main() {
int A[2][2] = {{1, 2}, {3, 4}};
int B[2][2] = {{5, 6}, {7, 8}};
// Logic for matrix multiplication
return 0;
}
Input
Two matrices of size 2x2.
Expected Output
Resultant matrix after multiplication: 19 22 43 50