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
Explain about tristate constants?
Why is it recommended to close the database connection every time after the work is completed?
How will you get a combined string from array of string in vbscript?
what is used of Property........End Property loop ? how to write the script for it?
who will create the object?
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
Explain some uses of vb script?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
what is diff between static and dynaic arrys?
When to use function procedures and what are its characteristics?
filter the array values without using filter function?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
How to take whole text output from screen of Bitmap Application.
Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com