Answer Posted / sandip khairnar
#include<conio.h>
void main()
{
int i,j,k,sum,a[3][3],b[3][3],c[3][3];
clrscr();
cout<<"enter matrix1";
for(i=0;i<3;i++)
for(j=0;j<3;j++)
cin>>a[i][j];
cout<<"enter matrix2";
for(i=0;i<3;i++)
for(j=0;j<3;j++)
cin>>b[i][j];
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
sum=0;
for(k=0;k<3;k++)
sum=sum+(a[i][k]*b[k][j]);
c[i][j]=sum;
}
}
cout<<"output:"<<endl;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
cout<<c[i][j]<<" ";
cout<<endl;
}
}
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
write a programe to calculate the simple intrest and compund intrest using by function overlading
what is the drawback of classical methods in oops?
What is inheritance and how many types of inheritance?
What is difference between pop and oop?
What do you mean by variable?
What is multilevel inheritance?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
to find out the minimum of two integer number of two different classes using friend function
what type of questions
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is the important feature of inheritance?
What does enum stand for?
What is this pointer in oop?
What is encapsulation example?
What is a class in oop?