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 |
is java purely oop Language?
49 Answers HCL, Infosys, TCS,
Why do we use oop?
What is Dynamic Polymorphism?
Is enum a class?
How would you stop a class from class from being derived or inherited.
Is abstract thinking intelligence?
What are the 5 oop principles?
Difference between realloc() and free?
Difference between vector and array
What does sksksk mean in text slang?
Can static class have constructor?
what is the size of an empty class