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...


create a c++ program that will accepts 9 inputs using 3 by 3
array.



create a c++ program that will accepts 9 inputs using 3 by 3 array...

Answer / s.verma

#include<iostream>
#include<conio.h>

using namespace std;

int main()
{
int matrix[3][3];

cout<<"Enter a 3x3 matrix row-wise :: \n"

for(int i=0; i<3; i++)
{
for(int j=0; j<3; j++)
cin>>matrix[i][j];
}

cout<<"\nYou eneterd :: \n"

for(int i=0; i<3; i++)
{
for(int j=0; j<3; j++)
{
cout<<matrix[i][j]<<" ";
}
cout<<"\n";
}

getch();
return 0;
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 Answers  


write a program for function overloading?

14 Answers   HCL, InfoCity, TATA,


is java purely oop Language?

49 Answers   HCL, Infosys, TCS,


oops concept is used for?

3 Answers   Synergy,


Why multiple inheritance is not allowed?

0 Answers  


i^=j; j^=i; i^=j; value of i,j

1 Answers  


What is the purpose of polymorphism?

0 Answers  


What is advantage of inheritance?

0 Answers  


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

2 Answers   Syntel,


What is destructor example?

0 Answers  


What is polymorphism explain its types?

0 Answers  


What type of Job you are providing?

0 Answers  


Categories