For i = 1 To
For j = To i + 1 Step -1
If d(j) <d(j - 1) Then
t = d(j): d(j) = d(j - 1): d(j - 1) = t
End If
Next j
For j = i + 1 To
If d(j) <d(j + 1) Then
t = d(j): d(j) = d(j + 1): d(j + 1) = t
End If
Next j
Next i
方框中的代码由以下三部分组成:
①n - i + 1 ②n \ 2 ③n - i
代码顺序正确的选项是( )