Dim a(1 To 8) As Integer
K = 8: n = 8
For i = 1 To 3
For j = i + 1 To n
If a(i) < a(j) Then
t = a(i): a(i) = a(j): a(j) = t
End If
Next j
For j = n - i To i + 1 Step -1
If a(k) > a(j) Then
t = a(k): a(k) = a(j): a(j) = t
End If
Next j
k = k - 1
Next i
数组元素a(1)~a(8)中的初始值为:8,13,7,14,6,9,5,12,执行该程序段后,数组元素a(1)~a(8)中的值将变为( )