Answer to Question #132502 in C++ for KA

Question #132502
Write a C++ program to achieve the following objectives.
(i) To read elements of two matrices A and B of dimension 3x3.
1
Expert's answer
2020-09-12T22:49:57-0400

#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS