Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

please can you help me to get a code of flames using a visual basic 6

1788


What purpose does ‘on error resume next’ serves?

1084


how does vb script help in web page designing? explain with example.

2002


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1947


Mention how you can call vbscript functions?

1138


regular expression that will recognize a browser as long as its name property starts with mybrowser

2236


What is the use of the date function in the vbscript language?

1051


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

1116


Explain How do you create a recordset object in vbscript?

1026


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

2051


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1922


If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

991


How will you format a number in percetage format in vbscript?

997


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1840


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

2102