maxSumm=-999999
FOR i=1 TO 4
tmpSumm=0
FOR j=1 TO 3
tmpSumm=tmpSumm + a(i,j)
NEXT j
IF tmpSumm > maxSumm THEN maxSumm = tmpSumm
NEXT i
PRINT maxSumm
maxSumm=-999999
FOR i=1 TO 4
tmpSumm=0
FOR j=1 TO 3
tmpSumm=tmpSumm + a(i,j)
NEXT j
IF tmpSumm > maxSumm THEN maxSumm = tmpSumm
NEXT i
PRINT maxSumm