Tuesday, June 29, 2010

Leap Year program Source code

Leap Year program Source code
<html>
<head><TITLE></TITLE>
<script language="JavaScript">
var b,c;
var a=prompt("Enter year");
b=a%4;
c=a%400;
if(b==0||c==0)
{
alert("given year is leap year");
}
else
alert("given year is not a leap year");
</script>
</head>
<body></body>
</html>

No comments:

Post a Comment