欢迎光临
我们一直在努力

闰年的判别

建站超值云服务器,限时71元/月

<body bgcolor="#ffffff">

<div align="center"><font color="#ff0000"><b>闰年判别 </b></font><b></b> </div>

<%

if request.form("cal")="y" then

n=cint(request.form("me"))

if ((n mod 4=0) and (n mod 100<>0)) or (n mod 400=0) then

response.write n & "是闰年!<br>"

else

response.write n&"不是闰年。<br>"

end if

end if

%>

<form method="post" action="try2.asp">

输入年份:

<input type="text" name="me" size="5">

<input type=hidden name=cal value=y>

<input type="submit" name="submit" value="提交">

</form>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 闰年的判别
分享到: 更多 (0)

相关推荐

  • 暂无文章