Matrix Multiplication

5

1 votes
Problem

Write a program to perform matrix multiplication.If Multiplication cannot be done for a given matrices then print "NOT POSSIBLE"

Input:-

1)Read the row & column size of matrix 1

2)Read the matrix 1

3)Read the row & column size of matrix 2

4)Read the matrix 2

Output:-

Resultant Matrix.

 

Sample Input
2 2
1 2
3 4
2 2
1 2 
3 4
Sample Output
7 10
15 22
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?