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 |
Whats is abstraction in oops?
What is encapsulation?
What is persistence in oop?
c++ is a pure object oriented programming or not?
write a program that takes input in digits and display the result in words from 1 to 1000
what is new modifier in C#
write a program to find 2^n+1 ?
which is platform independent device used in computers
what is virtual function in c++
2. Give the different notations for the class.\
What do we mean by a hidden argument in a function?
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts?