Created
November 11, 2018 21:32
-
-
Save canokay/3a048d3c22dcd8ebde96019510855009 to your computer and use it in GitHub Desktop.
Visual Basic Select Case
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Form1 | |
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click | |
Dim x, y As Integer | |
x = InputBox("İlk sayıyı gir: ") | |
y = InputBox("İkinci sayıyı gir: ") | |
Label1.Show() | |
Select Case x * y | |
Case 25 | |
Label1.Text = ("X*Y Sonucu= 25 dir.") | |
Case 25 To 100 | |
Label1.Text = ("X*Y Sonucu= 25 ile 100 dir.") | |
Case Is > 125 | |
Label1.Text = ("X*Y Sonucu= 125 sayısından yüksektir.") | |
Case Else | |
Label1.Text = ("X * Y nin sonucu işlemlerden hiçbiri değildir.") | |
End Select | |
End Sub | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment