дан массив
1004
0230
2003
0140
CLS
DIM a(4, 4)
DIM max(4)
DATA 1,0,0,4,0,2,3,0,2,0,0,3,0,1,4,0
FOR i = 1 TO 4
FOR j = 1 TO 4
READ a(i, j)
NEXT
NEXT
FOR i = 1 TO 4
FOR j = 1 TO 4
PRINT a(i, j); " ";
NEXT
PRINT
NEXT
PRINT
FOR i = 1 TO 4
max(i) = a(i, 1)
FOR j = 1 TO 4
IF a(i, j) > max(i) THEN max(i) = a(i, j)
NEXT
NEXT
FOR i = 1 TO 4
PRINT "max stroki "; i; "="; max(i)
s = s + max(i)
NEXT
PRINT "summa="; s