17. CONTOH KASUS PROGRAM PENJUMLAHAN MATRIKS
//judul //bintang ilham kurniawan //pmatriks #include <iostream> using namespace std; //kamus int a[10][10], b[10][10], mult[10][10], r1, c1, r2, c2; //diskripsi int main() { cout << "Enter rows and columns for first matrix: "; cin >> r1 >> c1; cout << "Enter rows and columns for second matrix: "; cin >> r2 >> c2; while (c1!=r2) { cout << "Column of first matrix not equal to row of second."; cout << "Enter rows and columns for first matrix: "; cin >> r1 >> c1; cout << "Enter rows and columns for second matrix: "; cin >> r2 >> c2; } cout << endl << "Enter elements of matrix 1:" << endl; for(int i = 0; i < r1; ++i) { ...