Computer Science, asked by kumarvickeya, 4 months ago

Date
Expt. No
Page No.
22: WAP to enter two matrices of size m*n & n*m respectively. find multiplication of inputted matrices & print in proper format​

Answers

Answered by shivikasrivastava482
2

Answer:

yes affocourse please please please please please

Answered by amansh17
1

Answer:

can u hack or programming

Explanation:

To multiply two matrices, the number of columns of the first matrix should be equal to the number of rows of the second matrix.

The program below asks for the number of rows and columns of two matrices until the above condition is satisfied.

Then, the multiplication of two matrices is performed, and the result is displayed on the screen.

To perform this, we have created three functions:

getMatrixElements() - to take matrix elements input from the user.

multiplyMatrices() - to multiply two matrices.

display() - to display the resultant matrix after multiplication.

Similar questions