<html>
<body>
<script type="text/vbscript">
dim j
j=cint(inputbox("Enter any number"))
if j >=1 and j<=100 then
document.write(j&" is within the range 1 to 100"&"<br>")
elseif j >=101 and j<=1000 then
document.write(j&" is within the range 101 to 1000"&"<br>")
else
document.write("sorry out of given range!!!!!!Try again"&"<br>")
end if
</script>
</body>
</html>
<body>
<script type="text/vbscript">
dim j
j=cint(inputbox("Enter any number"))
if j >=1 and j<=100 then
document.write(j&" is within the range 1 to 100"&"<br>")
elseif j >=101 and j<=1000 then
document.write(j&" is within the range 101 to 1000"&"<br>")
else
document.write("sorry out of given range!!!!!!Try again"&"<br>")
end if
</script>
</body>
</html>
No comments:
Post a Comment