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 increase the values in text box in a given text box increament by two values by clicking on button

1648


What is the difference between function and procedure?

576


Mention what is the technology used by vb script?

523


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

583


Explain about filter expression?

567






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

558


Mention what is the main difference between function and sub-procedure?

553


How will you get a combined string from array of string in vbscript?

549


How are values assigned to the variables in the vbscript language?

577


how to set one column as primary key in QTP and fetch values accordingly

1823


What is the technology used by vb script?

544


What is the purpose of on error resume next statement?

579


What is the output of a + b in vbscript if a = 5 and b = 10?

2123


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

1444


For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com

1756