Write a program in any language that takes two matrices A and B as inputs. Ensure your code handles matrices of different dimensions. A) Find the…

Write a program in any language that takes two matrices A and B as inputs. Ensure your code handles matrices of different dimensions.

A) Find the matrix C that is the multiplication of A and B.

B) Find the average of A and of B.

C) Find the maximum element of matrix C.

From the Combined Bank Senior Officer October 2023 – Written (MIST) exam, question 10 of 21.

More from this paper