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
What is the purpose of on error resume next statement?
how to operate webobjects in a webpage using getobject function and then using generic methods?
Explain the functionality of vbscript?
How will you get a string with the specified character the specified number of times in vbscript?
How to Convert Hex color code to color name in VB Script?
What is vbscript?
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
Which function is used in the vbscript language to convert the specified expression into a date type value?
What is the difference between for loop and while loop?
What is the extension of the vbscript file?
What is the output of a + b in vbscript if a = 5 and b = 10?
does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks
Explain different types of segment?
What methods are used to create text files and open text files in the vbscript language?
Explain about the functionality of vb script?