两个个位数之积

来源:互联网 发布:mac查看电池剩余时间 编辑:程序博客网 时间:2024/05/02 13:10

 


Private Sub Command1_Click()
Me.Font.Size = 40
Dim n1 As Byte, n1Len As Long
Dim n2 As Byte, n2Len As Long
Dim yushu As Byte
Dim shang As Byte
Dim tempresult As Byte
n1 = Int(Val(Me.Text1.Text))
n2 = Int(Val(Me.Text2.Text))
tempresult = n1 * n2
yushu = tempresult Mod 10
shang = tempresult \ 10
Print shang & yushu
End Sub


0 0
原创粉丝点击