RANDOMIZE TIMER
CLS
N = 5
DIM A(N, N)
PRINT "MASSIV: "
FOR I = 1 TO N
FOR J = 1 TO N
A(I, J) = INT(RND * 10 - 5)
PRINT A(I, J);
NEXT
PRINT
NEXT
PRINT
FOR I = 2 TO N
FOR J = 1 TO I - 1
PR = A(I, J)
A(I, J) = A(J, I)
A(J, I) = PR
NEXT
NEXT
PRINT "RESULTAT: "
FOR I = 1 TO N
FOR J = 1 TO N
PRINT A(I, J);
NEXT
PRINT
NEXT
Тестирование выполнено в программе QB64 ( Скачать )