We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
int main(){
int arr[6][6];
for(int i=0;i<6;i++){
for(int b=0;b<6;b++){
cin>>arr[i][b];
}
}
int a=1;
int c;
for(int e=0;e<4;e++){
for(int f=0;f<4;f++){
int b=b+arr[e][f]+arr[e+2][f]+arr[e+1][f+1]+arr[e][f+1]+arr[e+2][f+1]+arr[e][f+2]+arr[e+2][f+2];
while(a==1){c=b;a++;}
2D Array - DS
You are viewing a single comment's thread. Return to all comments →
include
using namespace std;
int main(){ int arr[6][6]; for(int i=0;i<6;i++){ for(int b=0;b<6;b++){ cin>>arr[i][b]; } }
int a=1;
int c; for(int e=0;e<4;e++){ for(int f=0;f<4;f++){ int b=b+arr[e][f]+arr[e+2][f]+arr[e+1][f+1]+arr[e][f+1]+arr[e+2][f+1]+arr[e][f+2]+arr[e+2][f+2]; while(a==1){c=b;a++;}
cout<
return 0;}