单数乘单数

来源:互联网 发布:知合控股 玉龙股份 编辑:程序博客网 时间:2024/04/27 14:16

Private Sub Command1_Click()
  Dim a As Byte, c As Integer
  Dim b As String
  b = Me.Text1.Text
  a = Int(Val(b))
  b = Me.Text2.Text
  c = Int(Val(b))
  Dim r As Byte
  r = a * c
  Print r
 

End Sub

0 0
原创粉丝点击