Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a program to multiply 3x3 matrics



Write a program to multiply 3x3 matrics..

Answer / 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

More OOPS Interview Questions

What are the benefits of interface?

0 Answers  


Why we are use # in begning of programme of c++.

2 Answers   Syntel,


WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET

1 Answers  


what are the characteristics of oops?

7 Answers   NIIT,


why c++ is called OOPS? waht is inherutance? what is compiler?

5 Answers  


What is destructor in oop?

0 Answers  


how many types of notations are in java

1 Answers   National University of Modern Languages (NUML),


what's the basic's in dot net

0 Answers   informatics,


what is different between oops and c++

0 Answers   IIT,


What is the difference between the C & C++?

9 Answers   HCL,


Out of 4 concepts, which 3 C++ Follow?

1 Answers   TCS,


What is Iteration Hierarchy? What is what is Object behavioral concept?

1 Answers  


Categories