Лабораторная работа: Расположение элементов в матрице
x(k) = a(pi, pj)
Next j
Next t
Next i
For i = 1 To n - 1
p = p - 1
pi = Int(p / 10)
pj = p - pi * 10
k = k + 1
x(k) = a(pi, pj)
Next i
For t = 1 To n ^ 2
For i = 1 To n ^ 2 - 1
If x(i) > x(i + 1) Then
k = x(i)
x(i) = x(i + 1)
x(i + 1) = k
End If
Next i
Next t
k = 0
p = n / 2 * 11
pi = Int(p / 10)
pj = p - pi * 10
k = k + 1
a(pi, pj) = x(k)
For i = 1 To n - 1
For t = 1 To 10 Step 9
For j = 1 To i