Private Sub Command1_Click()
Dim a As Long
Dim b As Integer
Dim yushu As Byte
Dim s As String
a = 123456
b = 16
While a <> 0
yushu = a Mod b
If yushu < 10 Then
s = yushu & s
Else
s = Chr(yushu + 55) & s
End If
a = a \ b
Wend
Print s
End Sub
Private Sub Command1_Click()Dim a As LongDim b As IntegerDim yushu As ByteDim s As Stringa = 123456b = 16While a yushu = a Mod bIf yushu s = yushu & sElses = Chr(yushu + 55) &