answersLogoWhite

0

/* Multiplication of matrics is very easy in c, here is code below */

#include
main()
{
int temp=0;
int arr[3][3]={1,2,3,4,5,6,7,8,9};
int arr1[3][3]={10,11,12,13,14,15,16,17,18} ;
for(int i=0;i<=2;i++)
{
printf("\n");
for(int j=0;j<=2;j++)
{
for(int k=0;k<3;k++)
{
temp = temp+ (arr1[j][k]* arr[k][j]);
}
printf("%d\t",temp);

}
}

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

Earn +20 pts
Q: Develop program code for two by two matrix multiplication?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic