VB排序题.:随即产生10个2位数,按从大到小递减的顺序排列,并显示排序结果.急
问题描述:
VB排序题.:随即产生10个2位数,按从大到小递减的顺序排列,并显示排序结果.急
我是新生,
答
Private Sub form_click()RandomizeDim tmp As IntegerDim a(1 To 10) As IntegerPrint "排序前为:" '可删除For i = 1 To 10 '开始随机生成10个数a(i) = Int(Rnd * 89+10)Print a(i); ‘可删除Next iPrint ’可删除...