闰年的判别
作者:佚名 文章来源:网络转载 更新时间
:2005-11-26 11:45:40
<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
%>
【相关文章:】
没有相关文章
【发表评论】【打印此文】【关闭窗口】【点击数: 】
<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>
【相关文章:】
没有相关文章
【发表评论】【打印此文】【关闭窗口】【点击数: 】
★好玩的休闲小游戏★
网友评论:
数据载入中,请稍后……
