int array[3][3];
int sum;
for ( int count = 0 ; count < 4 ; count++ ) {
sum += array[count][count] + array[count][3-count] + // next line
array[count][0] + array[count][1] + array[count][2] + array[count][3];
}
doraid:
What have you tried so far?
You need knowledge of: arrays, for loops and stuff.
dark knight:
arrays should be declared 4 by 4 (the max index to access n on both indices is 3)
I think he wants the sum of each row and each diagonal apart.
I'm not sure how he wants it stored btw.