您的位置:首页 > 编程语言 > VB

VB作业

2016-05-16 16:16 288 查看
Private Sub Command1_Click()

Dim n1 As Byte

Dim n2 As Byte



Dim shang As Byte

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