create a c++ program that will accepts 9 inputs using 3 by 3
array.
Answer Posted / 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 View All Answers
which feature are not hold visual basic of oop?
What is polymorphism in oop example?
What is an example of genetic polymorphism?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
what type of questions
When not to use object oriented programming?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
How do you achieve runtime polymorphism?
How does polymorphism work?
What is object and example?
State what is encapsulation and friend function?
Why multiple inheritance is not possible?
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...
What is abstraction and encapsulation?
What are the types of abstraction?