Lesson 58 Matrix multiplication - Programming Logic Part 11

Опубликовано: 01 Январь 1970
на канале: JavaJourneyWithMadhavi
19
3

Matrix multiplication program is explained with the help of one program.

Link to the Book - Essentials of Computer Applications:

https://www.amazon.in/Essentials-Comp...

Practice Exercise- Lesson 58 Matrix multiplication

1 2 3 4 10 20 30
5 6 7 8 40 50 60
1 2 3 4 70 80 90
10 20 30
first second

Initialize the above first and second matrices, multiply the contents of both the matrices and store the result in third matrix.
Output:
Elements of the first matrix:
1 2 3 4
5 6 7 8
1 2 3 4
Elements of the second matrix:
10 20 30
40 50 60
70 80 90
10 20 30
Product of the matrices:
340 440 540
860 1120 1380
340 440 540