include iostream using namespace std int main int array min cout Fill

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
using namespace std;
int main() {
int array[6][3], min = 0;
cout << "Fill in an array[6][3] of integers:" << endl;
for (int i = 0; i < 6; ++i) {
for (int j = 0; j < 3; ++j) {
cout << "Enter values for array[" << i << "][" << j << "]:" << endl;
cin >> array[i][j];
if(i == 0 && j == 0) {
min = array[i][j];
}
if(array[i][j] < min) {
min = array[i][j];
}
}
}
cout << "Minimal value on array:" << min;
return 0;
}