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


Please Help Members By Posting Answers For Below Questions

how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

4840


Does VB/Win make standalone .EXE files?

3005


Which keyword is used to declare a variable in the vbscript language?

599


Explain the support of asp for vb script functionality?

716


Is vbscript language a case-sensitive language and what does it mean?

635






what is used of Property........End Property loop ? how to write the script for it?

1780


How can the spaces from the string be removed?

684


How will you release the memory acquired by an array variable in vbscript?

843


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1966


Explain the constants in vbscript?

638


How to Enter Values on the Command promt using VB script

1616


why variable name should not exceed 255 characters?

1902


How will you get a subset of a array in vbscript?

669


What is purpose of scripting.filesystemobject class in vbscript?

746


How will you convert a string to lower case string using vbscript?

643