网乐原科技

直播中

news center新闻中心
首页 > 资讯中心 > 软件技术

闰年的判别

发布时间:2008-07-09     阅读数: 次       来源:网乐原科技
<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>

网乐原科技

客服热线:0771-5761507

QQ:53290011

QQ邮箱:53290011@qq.com

工作时间:周一到周五 9:00-18:00

地址:广西南宁市江南万达写字楼C16栋1309室

物联网开发

关注我们

微信小商店 腾讯QQ客服 微信客服