Private Sub Form_Click()Dim a(1 To 5) As LongDim i, j, z As Long For i = 1 To 5 a(i) = InputBox("请输入") Next i For i = 5 To 1 Step -1 '解释这个二重循环? For j = 1 To i - 1 If a(j) > a(j + 1) Then t = a(j + 1) a(j + 1) = a(j) a(j) = t End If Next j Next i For i = 1 To 5 Print a(i); " "; Next iEnd Sub1、二重循环中的外层为什么要终值到初值然后要步长-1这样做的目的?2、内层循环中为什么要初值到外层-1是什么意思。目的又是什么?
泛舟湖上清波郎朗