```
# include<iostream.h>
void main()
const int m=3;
const int n=4;
const int p=5;
int A[m][n];
int B[n][p];
{
cout<<"3x4 matrix";
for(m=0; m<3; m++)
{
for(n=0; n<4; n++)
cin>>A[m][n];
cout<<A[m][n]<<"\t";
}
cout<<"\n";
cout<<"4x5 matrix";
for(n=0; n<3; n++)
{
for(p=0; p<5; p++)
cin>>B[n][p];
cout<<B[n][p]<<"\t";
}
cout<<"\n";
int d, c=0;
for(m=0; m<3; m++)
{
for(p=0; p<5; p++)
{
for(n=0; n<4; n++)
d=A[m][n]*B[n][p];
c=c+d;
}
cout<<c;
}
}
```

nlsna17
0
Newbie Poster

## Recommended Answers

Jump to PostCan you explain the problem?????

## All 2 Replies

Reply to this topic
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.