Trịnh Quốc Lâm
New member
What does the following piece of code do?
A. Normal of a matrix
B. Trace of a matrix
C. Square of a matrix
D. Transpose of a matrix
Code:
for(int i = 0; i < row; i++)
{
for(int j = 0; j < column; j++)
{
if(i == j)
sum = sum + (array[i][j]);
}
}
System.out.println(sum);
B. Trace of a matrix
C. Square of a matrix
D. Transpose of a matrix