vb.net 统计数组中相同数字的个数
答案:1 悬赏:50 手机版
解决时间 2021-04-20 14:12
- 提问者网友:心如荒岛囚我终老
- 2021-04-19 22:40
vb.net 统计数组中相同数字的个数
最佳答案
- 五星知识达人网友:持酒劝斜阳
- 2021-04-20 00:01
Private Sub Form_Click()
Dim a(3) As Integer
Dim m As Boolean
m = True
For i = 0 To 3
a(i) = 1
Next i
For i = 0 To UBound(a)
If a(i) <> 1 Then
m = False
Exit For
End If
Next i
If m = True Then
Print "全部符合"
Else
Print "不全部符合"
End If
End Sub
Dim a(3) As Integer
Dim m As Boolean
m = True
For i = 0 To 3
a(i) = 1
Next i
For i = 0 To UBound(a)
If a(i) <> 1 Then
m = False
Exit For
End If
Next i
If m = True Then
Print "全部符合"
Else
Print "不全部符合"
End If
End Sub
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯