how to sum two-dimensional arrays
Hi iam kind of confused in how to sum a two dimensional arrays. I think i need some help;
(array[i][j]+sum of the four surronding numbers)/5>6
Im working with a two dimensional array [20][20]
please some hints!!!
array[i][j] + array[i+1][j] + array[i+1][j+1] + array[i-1][j-1]...etc;
just make sure i and j wont get over 20 or less than 0
Topic archived. No new replies allowed.