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

Explain about vb script?

747


what types of bugs will we find out in banking projects for automation testing?

1764


How to create a cookie using vbscript?

589


How will you get a string with the specified character the specified number of times in vbscript?

572


How will you get the smallest subscript of an array in vbscript?

807






Which in-built function is used to format the number in the vbscript language?

575


Which command is used for writing text on a page?

576


what is resorceallocation

1772


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

1550


give me any information abou vb script books learn quckly

1657


Out of the different type of operators, which are evaluated first and last in the vbscript language?

563


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1802


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1738


Explain the scope of the variables using dim, public, and private keywords respectively.

719


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1442