 Hello friends, I am Sanjay Gupta. In this video I am going to demonstrate you how you can multiply two matrixes in C programming. Before starting, you can note my information. You can follow or subscribe my YouTube channel through the URL youtube.com slash sanjaygupta underscore tech school. You can download my programming app Techimus which is available on Google Play. Now here I am going to implement a code in C programming so that we can multiply two matrices. So first I am including a header file stdi.h then I am implementing main. Inside main I am declaring three matrices A 3 by 3 then B 3 by 3 and then C 3 by 3. Here dimension of all the matrices are same then I J and K three variables. Now I am using printf which will display the message enter first matrix on console. To receive the values I am implementing nested for loop. Nested for loop will read values for first matrix from user. Now to receive element of second matrix I am copying these instructions and I have pasted them. So printf will print enter second matrix then for loops will be same and here instead of A I am using B. So this way elements of A and B will be received from user. Now I am going to apply logic for matrix multiplication. So first loop will repeat three times then second loop which will also repeat three times. Now inside this loop first I have to initialize P matrix with zero then I am implementing third loop K starting from zero it will repeat three times. Inside this K loop I am going to implement the logic C I J equals to P I J plus A I K into B K J. So this is the logic for matrix multiplication here A I K will be multiplied with B K J and then the result will be added into C I J. So this K loop will repeat three times. So it will multiply row with columns. So row will be provided by A matrix and columns will be provided by B matrix and the result will be assigned into C I J. So after completion of this loop the result will be available inside C matrix. So now I can print the results in the result I am implementing combination of for loop inside J loop I am printing the elements C I J. Now after completion of J loop I have to change the row line. So I am using flashing here. So this is the complete implementation which will display multiplication of two matrices. So here you can see with this I have read first matrix with this code second matrix will be read then third nested loop segment is multiplying two matrix and then the fourth looping segment will be displaying the output with the help of C matrix on console. Now I am executing this code. So I am entering first matrix. Now it is asking for second matrix. Again I am entering one in all places. You can see the result three three is printed at each places. So if you multiply first matrix first row with second matrix first column then the result will be three then first matrix first row will be multiplied with second column of second matrix then again result will be three. So according to the mathematical rule the output will be three at each places of C matrix if A and B elements are one at every places. So this way the program is working properly. This is the complete implementation of a matrix multiplication in C programming. I hope you have understood how we can calculate a matrix multiplication in C. If you want to watch more programming related videos you can follow or subscribe my YouTube channel through the URL youtube.com slash sanjaygupta underscore tech school. You can download my programming app Techimace which is available on Google Play. Thank you for watching this video.