0

Help to solve it in simple way,please! Write a code, which will have a function, that will multiply 2 matrices A and B of X to X

Task #1 Write a code, which will have a function, that will multiply 2 matrices A and B of X to X sizes, by receiving X size of the matrices and 2 pointers to matrix locations, and send the result to the main function. In the main function prompt user to enter size X and A, B matrices, then print the result of their multiplication. (You may use 2d dynamic arrays, pointers, and functions). Example: Input: 3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Description: (1*10 + 2*13 + 3*16) (1*11 + 2*14 + 3*17) (1*12 + 2*15 + 3*18) (4*10 + 5*13 + 6*16) (4*11 + 5*14 + 6*17) (4*12 + 5*15 + 6*18) (7*10 + 8*13 + 9*16) (7*11 + 8*14 + 9*17) (7*12 + 8*15 + 9*18) Output: 84 90 96 201 216 231 318 342 366

4th Dec 2020, 4:07 AM
Azat Malgazhdar
Azat Malgazhdar - avatar
1 ответ
+ 8
Hii Azat Malgazhdar Our community will surely help you! Just show us your attempt! Don't ask for readymade queries/homework queries! Follow community guidelines - https://www.sololearn.com/Discuss/1316935/?ref=app Hope you understand 👍
4th Dec 2020, 5:01 AM
Piyush
Piyush - avatar