Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim x As Integer
- Dim z As Integer
- Dim y As String
- Dim m As Integer
- Dim a As Integer
- x = Val(TextBox1.Text)
- a = (x - 1000) / 400
- y = x - 1000 '扣除初始1000M
- z = y Mod 400 '判斷是否剛好滿400M
- If z = 0 Then
- m = 0
- Else
- m = 1
- End If
- If x <= 1000 Then
- Label3.Text = 100
- Else
- Label3.Text = 100 + (a + m) * 5
- End If
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- End
Advertisement
Add Comment
Please, Sign In to add comment