Java Program to multiply two matricesWe can multiply two matrices in java using binary * operator and executing another loop. A matrix is also known as array of arrays. We can add, subtract and multiply matrices. In case of matrix multiplication, one row element of first matrix is multiplied by all columns of second matrix. Let's see a simple example to multiply two matrices of 3 rows and 3 columns. Test it NowOutput: 6 6 6 12 12 12 18 18 18 Next TopicJava Programs |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India