n=7
For i= 1Ton \2
For j=n-I To i+ 1 Step-1
Ifa(j)> a(j- 1) Then
t= a():a()=a(j-1):a(j- l)=t
End If
Next j
If i Mod 2= 0 Then
t= a(n-i+ 1):a(n-i+ 1)= a(i): a(i)=t
End If
Next i
已知a(1)到a(7)各元素初值分别是1,2,3,4,5,6,7,运行,上述程序段后,a(1)到a(7)各元素的值分别是( )