TO PRINT THE EVEN NUMBERS IN VBSCRIPT

<html>
 <body>
 <script type="text/vbscript">
 dim I,N

n=cint(inputbox("Enter the limit"))

for i=2 to n step 2
   document.write(i&"<br>")
next
</script>
</body>
</html>

No comments:

Post a Comment