Before the loop.
int nTotal = 0;

Inside the loop
nTotal += maatriks[i][2]);