write a vbscript for finding the sum of the numbers from 1-
50
Answer Posted / jethva_trupti
<html>
<body>
<script type="text/vbscript">
dim n,i,sum
sum=0
i=1
n=5
do while (i<=n)
sum=sum+i
i=i+1
loop
document.write(sum)
</script>
</body>
</html>
| Is This Answer Correct ? | 60 Yes | 15 No |
Post New Answer View All Answers
Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.
How can you create an object in vbscript?
What are the disadvantages of vbscript?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
What methods are used to create text files and open text files in the vbscript language?
If else for do while select in vb script?
How to write VB script for login module?
Which object provide information about a single runtime error in a vbscript?
How do you declare a variable in vbscript?
How to declare an array in vbscript?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
Mention what is the use of option explicit in vbscript?
where can i learn VB scripint ?
filter the array values without using filter function?
What are the uses of vb script?