TO CHECK EVEN OR ODD NUMBER IN VBSCRIPT

<html>
<head>
</head>
<body>
<script type="text/vbscript">
dim y
dim x
y=inputbox("enter any number")
x=y mod 2
if (x=0) then
document.write(y+" is a even number")
else
document.write(y+" is a odd number")
end if
</script>
</body>
</html>

No comments:

Post a Comment