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

How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2913


How to pass argument by reference to a function in vbscript?

973


Explain about .wsf files?

1056


What are the valid scopes of a variable in vbscript?

1046


How to Convert Hex color code to color name in VB Script?

4340


Is vbscript a case-sensitive or case-insensitive?

1200


what is the standards used for writing the script in QTP

2270


How to Import data from a file (file is on the desktop) to the data table

1944


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

3039


Explain about the extension .hta?

1020


Explain some uses of vb script?

918


how to increase the values in text box in a given text box increament by two values by clicking on button

2122


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

873


How can the spaces from the string be removed?

955


How will you get a string with the specified character the specified number of times in vbscript?

958