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

Explain about tristate constants?

1020


Why is it recommended to close the database connection every time after the work is completed?

933


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

951


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

2253


who will create the object?

2195


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3444


Explain some uses of vb script?

968


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

2489


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

4018


what is diff between static and dynaic arrys?

2148


When to use function procedures and what are its characteristics?

1079


filter the array values without using filter function?

2101


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

1088


How to take whole text output from screen of Bitmap Application.

2366


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

2290