TO GENERATE AND PRINT THE NATURAL NUMBERS IN REVERSE ORDER IN VBSCRIPT

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

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

for i=N to 1 STEP-1
    document.write(i&"<br>")
next
</script>
</body>
</html>

No comments:

Post a Comment