⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 润年判断
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "闰年计算"
   ClientHeight    =   3570
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5835
   LinkTopic       =   "Form1"
   ScaleHeight     =   3570
   ScaleWidth      =   5835
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   615
      Left            =   3840
      TabIndex        =   1
      Top             =   2520
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "输入年份"
      Height          =   615
      Left            =   3840
      TabIndex        =   0
      Top             =   1560
      Width           =   1215
   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()
Dim a As Integer
a = InputBox("请输入年份", "输入", 0)
    If a Mod 100 = 0 And a Mod 400 = 0 Then
    Form1.Print a;
    Print "年是闰年"
    ElseIf a Mod 100 <> 0 And a Mod 4 = 0 Then
    Form1.Print a;
    Print "年是闰年"
    Else
    Print a;
        Print "年不是闰年"

    End If
End Sub

Private Sub Command2_Click()
End
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -