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 increase the values in text box in a given text box increament by two values by clicking on button
What is the difference between function and procedure?
Mention what is the technology used by vb script?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
Explain about filter expression?
How will you convert a string to upper case string using vbscript?
Mention what is the main difference between function and sub-procedure?
How will you get a combined string from array of string in vbscript?
How are values assigned to the variables in the vbscript language?
how to set one column as primary key in QTP and fetch values accordingly
What is the technology used by vb script?
What is the purpose of on error resume next statement?
What is the output of a + b in vbscript if a = 5 and b = 10?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
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