write a vbscript for finding the sum of the numbers from 1-
50
Answer Posted / ankita
dim i ,n ,sum as integer
n=50
sum=0
for i=1 to n
sum=sum+i
msgbox("sum of 1 o 50 no. =" +sum)
next
Is This Answer Correct ? | 19 Yes | 7 No |
Post New Answer View All Answers
How to add actions in driver script to run those actions in QTP?
Explain the filter expression?
How will you get a subset of a array in vbscript?
What are the different types of operators and their order of precedence?
How to take whole text output from screen of Bitmap Application.
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
How will you get the natural logarithm of the given number in vbscript?
Why is error handling required?
who will create the object?
what is the difference between modular and data and keyword driven framework
What are the advantages of vbscript?
Mention how to access array data?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
What is the output of a + b in vbscript if a = 5 and b = 10?