Matrix Multiplication of M x N Matrix. C++ Program.txt - #include <iostream> using namespace std int i j k\/global variables int main int n[10[10 m[10[10

Matrix Multiplication of M x N Matrix. C++ Program.txt -...

This preview shows page 1 - 2 out of 2 pages.

#include <iostream>using namespace std;int i, j, k; //global variables.int main(){int n[10][10], m[10][10], result[10][10], row1, col1, row2, col2;cout << "------------------------------------------------------------------------------------------------------------------------";cout << "------------------------------------------------------------------------------------------------------------------------";cout << " ";cout << " Program To Perform Matrix Multiplication of M x N Matrix " << endl;cout << "------------------------------------------------------------------------------------------------------------------------";cout << "------------------------------------------------------------------------------------------------------------------------" << endl;cout << "Kindly, Enter the number of 'Rows' & 'Columns' of the first matrix: "; //Seperate using 'Space'.cin >> row1 >> col1;cout << "Kindly, Enter the number of 'Rows' & 'Columns' of the second matrix: "; //Seperate using 'Space'.cin >> row2 >> col2;while (col1 != row2){cout << "-- INVALID INPUT ! --\nColumn of second Matrix isn't equal
Background image
Background image

You've reached the end of your free preview.

Want to read both pages?

  • Fall '18
  • Zia Ul Rehman
  • Multiplication, Carriage return, Row, The Elements

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture