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

What is difference between vbscript and vba?

612


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2500


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1852


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

546


Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

2558






How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3277


How to access array data?

545


How many types of operators are available in the vbscript language?

539


Which date function is used in the vbscript language to find the difference between the 2 dates?

595


write a program to display configuration of a local system with the help of vb script.

1690


What are the differences between sub procedures and function procedures?

522


why do u choose to go for testing why cant for devoloping

1594


How to write VB script for login module?

2678


What are keywords in the vbscript language?

527


Explain different types of segment?

573