Question: Write a C++ program that will muliply two arrays and print the answer in matrix form. First the program should promt the user to enter
Write a C++ program that will muliply two arrays and print the answer in matrix form. First the program should promt the user to enter the dimensions of the first array (rows then columns), then promt the user to read in the array. Second the program should promt the user to enter the dimensions of the second array, then prompt the user to read in that array.
Arrays will be no bigger than 10x10, but they will not necessarily by square. It is possible to give arrays that can not be multiplied. In this case the program should output and error message.
Note: You MUST use arrays of size 10x10 and figure out how the code can handle smaller arrays stored in the 10x10 array.
Example Run:
Please input the dimensions of the array: 2 3
Please input array:

Please input the dimensions of the 2nd array: 3 2
Please input array:

The answer is

NOTE: No classes, structs, or pointers are allowed
2 3 4 -1 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
