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

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

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