int result_1 = 0;int result_2 = 0;for(int i= 0; i<5;i++) {result_1 += arr[i][i];result_2 += arr[5-1-i][[5-1-i];}