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

after medical test,when will be the police verification

2124


Explain what is loose binding? Why is it not a good practice to use it?

1043


How to open browser in vb script?

1172


What are the environments supported by vbscript language?

892


what is the features of visual basic?

2069


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

2478


How to write VB script for login module?

3134


How will you check that a variable is an array in vbscript?

972


Explain about tristate constants?

971


what is the object hyrarchy in QTP for a web based application

2343


Difference between dim,public and private variables in vb script?

914


Which operator can be used to change the value of the operand or change the state of the condition?

989


How will you reverse a string in vbscript?

1092


Which function allows you to instantiate an object given its programmatic identifier or progid?

1000


Explain about vb script?

1183