如何判別閏年
<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 & "是閏年!
"
else
Response.Write n&"不是閏年。
"
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>
</body>
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點(diǎn)擊舉報(bào)。