Praktikum membuat matriks array 2 dimensi
CODING C++ nya
#include <iostream>
https://www.onlinegdb.com/#editor_1using namespace std;
int mahttps://www.onlinegdb.com/#editor_1in()
{
int bil[2][3];
for (int a=0;a<2;a++){
for (int b=0;b<3;b++){
cout << "Matriks " <<a<<","<<b<< " = ";
cin >> bil[a][b];
}
}
cout << "\n============================================"
<< endl;
cout << "Hasil yang dimasukkan, tampilannya adalah " <<
endl;
cout << "============================================" <<
endl;
for (int a=0;a<2;a++){
for(int b=0;b<3;b++){
cout << bil[a][b]<< " ";
}cout << endl;
}
}
PRAKTIKUM NYA
Komentar
Posting Komentar