题目内容:
运行下列过程,当输入一组数据:l0,20,50,80,40,30,90,100,60,70,输出的结果应该是( )。Sub pl()Dim i,j,arr(11)AsIntegerx=1Whilek<=10arr(k)=VaI(InputBox(”请输入第”&k&”个数:”,”输入窗口”))k=k+1WendFor i=1T09J=i+1Ifarr(i)>arr(j)Thentemp=arr(i)arr(i)=art(j)arr(j)=tempEndIfDebu9.Printarr(i)NextiEnd SubA.无序数列
B.升序数列
C.降序数列
D.原输入数列
参考答案:
答案解析: