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


Please Help Members By Posting Answers For Below Questions

Description.Create

2162


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..

1803


why variable name should not exceed 255 characters?

1815


What are string functions in vbscript?

656


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

577






Which command is used for writing text on a page?

576


Explain the arrays in vb script?

585


Explain about the asc function?

603


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

534


Mention when to use function procedures and what are its characteristics?

627


Explain vbscript in detail?

615


How can you create a file object to work with the files in the vbscript language?

505


please can you help me to get a code of flames using a visual basic 6

1226


where can i learn VB scripint ?

1595


what types of bugs will we find out in banking projects for automation testing?

1764