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

option explicit
dim myarray,max,i
myarray = array( 34,23,45,67,12 )
max=myarray(0)
for i=0 to ubound(myarray)
if max < myarray(i) then
max=myarray(i)
end if
next
msgbox "max number is : "&max

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what if you do not specify anything when you call a procedure?

927


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2856


Mention the environments where vbscript could be run?

1149


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

914


How will you get the exponent of the given number in vbscript?

971


What is difference between vbscript and vba?

1117


How will you convert a string to upper case string using vbscript?

933


what is event handling?

945


Mention how to access array data?

912


Explain a few date functions in vbscript

939


What is vbscript procedures?

1065


What is the use of option explicit statement?

945


Explain some uses of vb script?

921


What are the data types supported by vbscript?

1045


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

1101