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>
0 comments:
Post a Comment