W.A.P to take two matrix and calculate multiplication

W.A.P to take two matrix and calculate multiplication



Output 1 :

Enter the 9 element of first matrix

1
2
3
4
5
6
7
8
9

Enter the 9 element of Second matrix

1
2
3
4
5
6
7
8
9

First matrix

1 2 3
4 5 6
7 8 9

Second matrix

1 2 3
4 5 6
7 8 9

Multiplication of two matrix

30 36 42
66 81 96
102 126 150

Output 2 :

Enter the 9 element of first matrix

2
3
5
6
7
14
12
7
9

Enter the 9 element of Second matrix

11
1
0
7
18
15
12
3
9

First matrix

2 3 5
6 7 14
12 7 9

Second matrix

11 1 0
7 18 15
12 3 9

Multiplication of two matrix

103 71 90
283 174 231
289 165 186

Post a Comment

0 Comments