某 VB 程序段如下:i = 1Do While i <= 3k = ij = i + 1Do While j <= 5If a(j) < a(k) Then k = jj = j + 1LoopIf i <> k Then t = a(i)a(i) = a(k)a(k) = tEnd Ifi = i + 1Loop數(shù)組元素a(1)到a(5)的值依次為“17,87,36,22,45”,則該程序段運(yùn)行后,數(shù)組元素a(1)到a(5)的數(shù)據(jù)依次是()
A.87, 45, 36, 17, 22
B.17, 22, 36, 45, 87
C.17, 22, 36, 87, 45
D.87, 45, 17, 36, 22
D、87, 45, 17, 36, 22