某VB程序段如下: S=”” For i=2 to 4 For j=8 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 s=s+" "+d(i) Next i Label1. caption=s, 若数组元素d(1)到d(8)的数据依次为: "12","7","18”,"13",”9","17","6","23",运行该程序段后,标签label1中显示的内容是( )
A . 7 9 13
B . 6 7 9
C . 13 17 18
D . 12 13 17
答案:C