VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5295
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6555
   LinkTopic       =   "Form1"
   ScaleHeight     =   5295
   ScaleWidth      =   6555
   StartUpPosition =   3  '系統預設值
   Begin VB.CommandButton Command1 
      Caption         =   "計算"
      Height          =   735
      Left            =   3960
      TabIndex        =   6
      Top             =   1200
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   1680
      TabIndex        =   2
      Top             =   120
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1095
   End
   Begin VB.Label Label4 
      Caption         =   "結果：??"
      Height          =   615
      Left            =   120
      TabIndex        =   5
      Top             =   1440
      Width           =   1455
   End
   Begin VB.Label Label3 
      Caption         =   "條件：4的倍數但不是5的倍數"
      Height          =   375
      Left            =   120
      TabIndex        =   4
      Top             =   960
      Width           =   3015
   End
   Begin VB.Label Label2 
      Caption         =   "之間符合下列條件的整數有多少個？"
      Height          =   495
      Left            =   3000
      TabIndex        =   3
      Top             =   360
      Width           =   2895
   End
   Begin VB.Label Label1 
      Caption         =   "至"
      Height          =   495
      Left            =   1320
      TabIndex        =   1
      Top             =   360
      Width           =   615
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
a = Text1.Text
b = Text2.Text

c = a Mod 4
d = a Mod 20
e = b Mod 4
f = b Mod 20

h = b - e
i = b - f
j = a - c
k = a - d

g = (Int(h / 4) - Int(i / 20)) - (Int(j / 4) - Int(k / 20))
Label4.Caption = g

End Sub
