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
Why is encapsulation used?
What is encapsulation oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is abstraction and encapsulation?
What are different oops concepts?
What does no cap mean?
What is class and object with example?
What is debug class?what is trace class? What differences are between them? With examples.
Why is there no multiple inheritance?
What is stream in oop?
What does and I oop mean in text?
can inline function declare in private part of class?
What is new keyword in oops?
What is abstraction oop?
write knight tour problem which is present in datastructure