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
2
Answer:
yes affocourse please please please please please
Answered by
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
English,
2 months ago
Social Sciences,
2 months ago
Political Science,
4 months ago
Social Sciences,
4 months ago
English,
9 months ago
India Languages,
9 months ago