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 |
What is protected in oop?
What is design patterns in C++?
What are the features of oop?
In OverLoading concept,Why they are not consider return value and why they are consider only parameters in method? For ex: public int Add(int a,int b){...} public String Add(int a,int b){...}
Conversion from a basic type to a class type may be achieved using______________
How do you define a class in oop?
What are the data types in oop?
What is difference between pop and oop?
What do you mean by inline function?
Why a "operator=(...)" when there is a copy ctor?
write a c++ code of diagonal matrix.
What are the three main types of variables?