TO CHECK LEAP YEAR OR NOT IN VBSCRIPT

<html>
<head>
</head>
<body>
<script type="text/vbscript">
dim y
dim x
y=inputbox("enter any year")
x=y mod 4
if (x=0) then
document.write("leap year")
else
document.write(" not a leap year")
end if
</script>
</body>
</html>

No comments:

Post a Comment