INPUT "vvedite kolichestvo strok i stolbcov N=", n
DIM a(n, n)
FOR i = 1 TO n
FOR j = 1 TO n
INPUT "vvedite element ", a(i, j)
NEXT
NEXT
PRINT "matrica "
FOR i = 1 TO n
FOR j = 1 TO n
PRINT a(i, j);
NEXT
PRINT
NEXT
FOR i = 1 TO n
s = s + a(i, n - i + 1)
NEXT
PRINT "s="; s
FOR i = 2 TO n STEP 2
FOR j = 1 TO n
a(i, j) = a(i, j) - s
NEXT
NEXT
PRINT "novyj massiv "
FOR i = 1 TO n
FOR j = 1 TO n
PRINT a(i, j);
NEXT
PRINT
NEXT
Тестирование выполнено в программе QB64 ( Скачать )