Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
int main(){
int t[2][3];
for(int i = 0;i<2;i++){
for(int j = 0;j<3;j++){
t[i][i] = 0; } }
cout<<"Enter array elements: ";
for(int i = 0;i<2;i++){
for(int j = 0;j<3;j++){
cin>>t[i][j]; } }
int small = t[0][0];
for(int i = 0;i<2;i++){
for(int j = 0;j<3;j++){
if(small>t[i][j]){small = t[i][j];} } }
cout<<"Smallest: "<<small<<endl<<endl;
cout<<" \t0\t1\t2"<<endl;
cout<<" \t_\t_\t_"<<endl;
for(int i = 0;i<2;i++){
cout<<i<<"|\t";
for(int j = 0;j<3;j++){
cout<<t[i][j]<<"\t";
}
cout<<endl; }
return 0;
}
Explanation:
See attachment for complete source file where comments are used to explain each line