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...

how to find greatest of n numbers!

Answer Posted / raju

dim i, lar, j, a()
i=Cint(Inputbox("Enter the value how many value to be enter"))
for j=1 to i
ReDim a(i)
a(j)=inputbox("enter the numbers")
Next
lar=a(0)
for j=1 to i
If a(j)>lar Then
lar=a(j)
End IF
Next
msgbox "Largest Number is" & lar

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the smallest subscript of an array in vbscript?

1428


What is sql loader? Explain the files used by sql loader to load file?

1221


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2898


What is the difference between vbscript and vba?

1193


Mention the rules for using option explicit statement?

1067


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

1053


How to write VB script for login module?

3238


How to make sure that items in a wintree are sorted al?

2889


how to acces the remote mechine using vb cript(QTP)

2091


Explain a few date functions in vbscript

1032


wht must be the interview question on corinthian information technology solutions incorporated.

2673


When does ‘on click of button’ event gets triggered in the vbscript language?

1076


Mention what is the use of option explicit in vbscript?

1060


How are comments handled in the vbscript language?

1054


How regexp.execute method works?

1122