import java.util.Scanner; public class MatrixMult { public static void main(String[] args) { double [][] A, B, C; Scanner getInput = new Scanner(System.in); // Get the sizes System.out.println("Input n, m, p to multiply nxp and pxm matrices"); int n = getInput.nextInt(); int m = getInput.nextInt(); int p = getInput.nextInt(); // Create the matrices A = new double[n][m]; B = new double[n][p]; C = new double[p][m]; // Input the matrices System.out.printf("Input %d doubles for the %dx%d matrix B\n", n*p,n,p); for (int i=0; i