Dim yea As IntegerDim LeapYear As Booleanyea = InputBox("请输入年号:")If ((yea Mod 4) = 0) Then LeapYear = ((yea Mod 100) > 0) Or ((yea Mod 400) = 0)End IfIf LeapYear Then MsgBox yea & "年是闰年。" Else MsgBox yea & "不是闰年"