You are viewing a single comment's thread. Return to all comments →
int A=0,temp=-63,sum=0; while(A<4){ int B=0; while(B<4){ int C=A; while(C<A+3){ int D=B; while(D<B+3){ if(C==A+1 && D==B) { } else if(C==A+1 && D==B+2){ } else{ sum +=arr[C][D]; } D++; } C++; } if(sum > temp){ temp = sum ; } sum = 0; B++; } A++; } System.out.println(temp); scanner.close(); }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Day 11: 2D Arrays
You are viewing a single comment's thread. Return to all comments →
}