?? module1.vb
字號:
Imports System.Windows.Forms
Module Module1
Public Function minimum3(ByVal a As Double, ByVal b As Double, ByVal c As Double) As Double
If (a > b) Then
If (b > c) Then
Return c
Else
Return b
End If
Else
If (a < c) Then
Return a
Else
Return c
End If
End If
End Function
Sub Main()
Dim x, y, z As Double
Dim output As String
x = InputBox("請輸入第一個數", "輸入對話框")
y = InputBox("請輸入第二個數", "輸入對話框")
z = InputBox("請輸入第三個數", "輸入對話框")
output = minimum3(x, y, z)
messagebox.show(output)
End Sub
End Module
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -