1个回答
展开全部
Dim a(10) As Integer
Dim i%, j%, t%
Randomiz
For i = 1 To 10
a(i) = Int(Rnd * 90 + 10)
Print a(i);
Next
Print
For i = 1 To 9
For j = i + 1 To 10
If a(i) > a(j) Then
t = a(i)
a(i) = a(j)
a(j) = t
End If
Next
Next
For i = 1 To 10
Print a(i);
Next
Dim i%, j%, t%
Randomiz
For i = 1 To 10
a(i) = Int(Rnd * 90 + 10)
Print a(i);
Next
For i = 1 To 9
For j = i + 1 To 10
If a(i) > a(j) Then
t = a(i)
a(i) = a(j)
a(j) = t
End If
Next
Next
For i = 1 To 10
Print a(i);
Next
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询