DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
DATA 0,0,0,0,0,0,0,0,0,0,0,0
' Матрица, массив сумм и массив процентов
DIM M(12, 21) AS LONG, Prc AS DOUBLE
CONST YearSub = 350518
WIDTH 80, 50 ' Ставим 80x50 символов (режим ещё текстовый)
PRINT "Matrica:"
' Заполнение матрицы из DATA
FOR iy = 1 TO 21: FOR ix = 1 TO 12
READ M(ix, iy)
PRINT M(ix, iy);
NEXT: PRINT : NEXT
' Вычмсление сумм
PRINT "Dannye po stolbcam:"
FOR ix = 1 TO 12
S = 0
FOR iy = 1 TO 21
S = S + M(ix, iy)
NEXT
Prc = (S / YearSub) * 100
PRINT ix; "=", Prc
ProcSum = ProcSum + Prc
NEXT
PRINT "V sovokupnosti:"; ProcSum; "procentov"
Тестирование выполнено в программе QB64 ( Скачать )