假设维数组为d,却数组下标从1开始,s = 0for i = 1 to 5 for j = 1 to 5 if i + j = 6 then s = s + d(i,j) end if next jnext iprint s