Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- End
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim n As Integer
- n = Val(TextBox1.Text)
- If n Mod 2 = 1 Then
- Label2.Text = n & " 為奇數"
- Else
- Label2.Text = n & " 為偶數"
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment