I have a square matrix. Let's say that I set it to 3 and put as data 1 to 9, the corners would be 1, 3, 7, 9.
So, I use this code to find and add them:
for i in 0..N-1
for j in 0..N-1
if(((i==0) || (i==N-1))&&((j==0) ||...
asked by
18.05.2017 / 02:42