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

dim varr(4),vhigh
for i=0 to 4 step 1
varr(i)=cint(inputbox("enter the value"))
next
vhigh=varr(0)
for i=1 to 4 step 1
if varr(i)>vhigh then
vhigh=varr(i)
end if
next
msgbox vhigh

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what are the rules to name variable in vbscript?

962


Which function is used in the vbscript language to convert the specified expression into a date type value?

880


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1839


Both Static and dynamic arrays are handled by VB script. Is it true?

1036


how to automatically update the sql server2005 database records when insert in vb6?

1887


Why is the use of exit do or exit for statements within loops discouraged?

983


Explain the filter expression?

1039


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

2463


what is the standards used for writing the script in QTP

2273


What is the purpose of on error resume next statement?

930


Which loop is used in case of arrays in the vbscript language?

903


filter the array values without using filter function?

2044


What are the differences between sub procedures and function procedures?

933


what is the differance between BYVAL,BYREF?

2219


What are the naming conventions while declaring a variable in the vbscript language?

991