#include <iostream>
using namespace std;
void sale(){
int i,j,sales[10][12];
int min,max;
for(i=1;i<=10;i++){
for(j=1;j<=12;j++){
if(sales[i][j]>max){
max=sales[i][j];
}
else if (sales[i][j<min]){
}
}cout<<endl;
}
}
main(){
int sales[10][12];
int i,j;
int max=0,min=1000;
for(i=1;i<=10;i++){
for(j=1;j<=12;j++){
cout<<"Masukkan data sales ke["<<i<<"] pada bulan["<<j<<"] : ";
cin>>sales[i][j];
}
}
for(i=1;i<=10;i++){
for(j=1;j<=12;j++){
cout<<sales[i][j]<<"\t";
}cout<<endl;
}
sale();
cout<<"Penjualan Terbesar : "<<max<<endl;
cout<<"penjualan terkecil : "<<min;
return 0;
}
Output :