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
How to replace junk code recorded by QTP with a mall function.
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
In what way program "hello world" you can write in vbscript?
What is the difference between a dictionary and an array?
What are the disadvantages of vbscript?
Explain the asc function?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
Explain few date functions in vbscript?
What is the purpose of on error resume next statement?
Explain about scrrun.dll in vbscript?
What are the naming conventions while declaring a variable in the vbscript language?
what is the standards used for writing the script in QTP
Explain the filter expression?