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

create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2694


How to assign a numeric value to a variable?

1175


how does vb script help in web page designing? explain with example.

2041


Explain what is loose binding? Why is it not a good practice to use it?

1134


What is the use of option explicit in vbscript?

1043


Explain about tristate constants in vbscript?

1132


Mention how you can call vbscript functions?

1186


what is the differance between BYVAL,BYREF?

2324


How will you convert a given number to long in vbscript?

934


What are the data types supported by vbscript?

1174


What is Procedure or Subroutine in VB Script?

1205


How to capture a runtime error in vbscript?

1212


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1430


What are events in the vbscript language?

1171


What is the use of the formatdatetime function in the vbscript language?

1073