您的位置:首页 > 其它

两个个位数之积

2016-04-14 17:11 155 查看
 

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: