i=6
Do While i>= 1
t= Int(Rnd * 10)+ 1
If t Mod 2=i Mod 2 Then a(i)=t: i=i-1
Loop
For i=1 To 2
k=-1
For j=1 To 5-i
If a(j) * k>a(j+2) *k Then
temp= a(i): a(j)=a(j+2): a(j+2)= temp
End If
k=-k
Next j
Next i
执行该程序段后,数组元素a(1)到a(6)值可能是( )
微信扫码预览、分享更方便