Se per sommare singole righe, o colonne, intendi sommare tutti i suoi elementi, allora puoi proseguire così:
Il codice è buttato lì. Naturalmente può essere migliorato. Ciaocodice:int rowSelected = 3; int indexRow = 0; while(indexRow < matrix.lenght){ if(indexRow == rowSelected){ int indexCol = 0; int sumRighe = 0; while(indexCol < matrix[row].lenght){ sumRighe = sumRighe + matrix[indexRow][indexCol]; } } indexRow++; }