欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

使用inputbox任意輸入5個數到數組A中

呂致盈2年前19瀏覽0評論

使用inputbox任意輸入5個數到數組A中?

Dim a(1 To 5) As Single, i As Integer, j As IntegerPrivate Sub form_Click()ClsPrint "排序后:"For i = 1 To 5a(i) = Val(inputbox("請輸入第" & i & "個元素的值"))Next iFor i = 1 To 4For j = i + 1 To 5If a(i) > a(j) Thent = a(i): a(i) = a(j): a(j) = tEnd IfNextNextFor j = 1 To 5Print a(j);NextEnd Sub