📄 module1.vb
字号:
Imports System.Windows.Forms
Module Module1
Public Function Multiple(ByVal a As Integer, ByVal b As Integer) As String
If a <> 0 Then
If (b Mod a = 0) Then
Return True
Else
Return False
End If
Else
Return False
End If
End Function
Sub Main()
Dim x, y As Integer
Dim output As String
x = InputBox("请输入第一个数", "输入对话框")
y = InputBox("请输入第二个数", "输入对话框")
output = Multiple(x, y)
MessageBox.Show(output)
End Sub
End Module
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -