For this Question: Given two matrices A and B of size (M x N) and (N x P) respectively, Find matrix C, the product of matrix A and B.

<a href="https://en.wikipedia.org/wiki/Matrix_multiplication">Matrix Multiplication</aThe first line contains three integers M, N, and P as mentioned in the problem statement.
Next M lines contain N integers denoting the elements of matrix A
Next N lines contain P integers denoting the elements of matrix B

<b>Constraints</b>
1 &le; M, N, P &le; 100
1 &le; A[i][j], B[i][j] &le; 100Print M lines each containing P integers denoting the elements of matrix C respectivelySample input 1:
2 2 2
1 0
0 1
2 3
1 0

Sample output 1:
2 3
1 0

<b>Explanation:</b>
[ [1 , 0] , [0 , 1] ] X [ [2 , 3] , [1 , 0] ]  = [ [2 , 3] , [1 , 0] ] , I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) throws Exception{
    BufferedReader rd=new BufferedReader(new InputStreamReader(System.in));
	String inp1[]=rd.readLine().split(" ");
	int m=Integer.parseInt(inp1[0]);
	int n=Integer.parseInt(inp1[1]);
	int p=Integer.parseInt(inp1[2]);
    int m1[][]=new int[m][n];
	int m2[][]=new int[n][p];
	for(int i=0;i<m;i++)
	{
		String inp[]=rd.readLine().split(" ");
		for(int j=0;j<n;j++)
		m1[i][j]=Integer.parseInt(inp[j]);
	}

    for(int i=0;i<n;i++)
	{
		String inp[]=rd.readLine().split(" ");
		for(int j=0;j<p;j++)
		m2[i][j]=Integer.parseInt(inp[j]);
	}


	int m3[][]=new int[m][p];
	for(int i=0;i<m;i++)
	{
           for(int j=0;j<p;j++)
		   {

			   for(int k=0;k<n;k++){
                   m3[i][j]+=m1[i][k]*m2[k][j];

			   }
		   }
	}
    for(int i=0;i<m;i++)
	{
		for(int j=0;j<p;j++)
		System.out.print(m3[i][j]+" ");
		System.out.println();
	}


	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?