面试题答案
一键面试Dim year As Integer
year = CInt(InputBox("请输入一个年份"))
If (year Mod 4 = 0 And year Mod 100 <> 0) Or (year Mod 400 = 0) Then
MsgBox "该年份是闰年"
Else
MsgBox "该年份不是闰年"
End If
Dim year As Integer
year = CInt(InputBox("请输入一个年份"))
If (year Mod 4 = 0 And year Mod 100 <> 0) Or (year Mod 400 = 0) Then
MsgBox "该年份是闰年"
Else
MsgBox "该年份不是闰年"
End If