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 difference between vbscript and vba?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
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.
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
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.
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
How to access array data?
How many types of operators are available in the vbscript language?
Which date function is used in the vbscript language to find the difference between the 2 dates?
write a program to display configuration of a local system with the help of vb script.
What are the differences between sub procedures and function procedures?
why do u choose to go for testing why cant for devoloping
How to write VB script for login module?
What are keywords in the vbscript language?
Explain different types of segment?