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
Description.Create
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
why variable name should not exceed 255 characters?
What are string functions in vbscript?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
Which command is used for writing text on a page?
Explain the arrays in vb script?
Explain about the asc function?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
Mention when to use function procedures and what are its characteristics?
Explain vbscript in detail?
How can you create a file object to work with the files in the vbscript language?
please can you help me to get a code of flames using a visual basic 6
where can i learn VB scripint ?
what types of bugs will we find out in banking projects for automation testing?