题型:综合题 题类:常考题 难易度:普通
浙江省台州中学2016-2017学年高一下学期信息技术第四次统练试题
Private Sub Command1_Click()
Dim n As Long, m As Integer
Dim a(0 To 9) As Integer
n = Val(Text1.Text)
List1.Clear
For i = 0 To 9
a(i) = 0
Next i
Do While n > 0
t = n Mod 10
a(t) = a(t) + 1
Loop
m = a(0)
For i = 1 To 9
If a(i) > m Then m = a(i): k = i
List1.AddItem Str(i) & ":" & Str(a(i)) & "个"
Next
Label2.Caption = "出现最多的数字是:" +
End Sub
试题篮