Private Sub Command1_Click()
Dim a(0 To 9) As Integer
Dim t as Long
t = Val(Text1.Text)
Do While t <> 0
a(t Mod 10) = 1
t = t \ 10
Loop
For i = 0 To 9
x = x + a(i)
Next i
End Sub
若在文本框Text1中輸入10242048,則程序執(zhí)行后,變量x的值為( )
微信掃碼預(yù)覽、分享更方便
2006-2024 深圳市思高達(dá)科技有限公司 粵ICP備14099982號(hào) 粵公網(wǎng)安備 44030702004423號(hào)