Question #132502

Write a C++ program to achieve the following objectives.
(i) To read elements of two matrices A and B of dimension 3x3.

Expert's answer

#include <iostream>


int main()

{

 int A[3][3];

 int B[3][3];

 

   for (int i = 0; i < 3; i++) {

    for (int j = 0; j < 3; j++) {

      std:: cin >> A[i][j];

    }

  }

  for (int i = 0; i < 3; i++) {

    for (int j = 0; j < 3; j++) {

      std:: cin >> B[i][j];

    }

  }

}



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS