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 / kishore

dim n
n=inputbox("enter a number")
k=(n*(n+1))/2
msgbox k

Is This Answer Correct ?    10 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1970


What is Procedure or Subroutine in VB Script?

1095


Explain the extension .hta?

929


How will you reverse a string in vbscript?

1094


What are string functions in vbscript?

1124


Out of the different type of operators, which are evaluated first and last in the vbscript language?

963


Explain about tristate constants in vbscript?

1051


1. How do declare public variable in vb scripts?

2060


what is event handling?

957


How should i Create Email invite with server-side Coding?

2080


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

2256


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3709


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1874


How are arrays declared in the vbscript language?

961


How to assign a numeric value to a variable?

1086