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

What is the purpose of the err object in the vbscript language?

780


Explain the functionality of vbscript?

665


How are values assigned to string type and numeric type variables?

691


Illustrate briefly about the different types of statement

2168


write a program to display configuration of a local system with the help of vb script.

1833






How to create a function in vbscript?

725


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

655


1. How do declare public variable in vb scripts?

1726


Is VB Script Case sensitive or Case insensitive?

785


How to Convert Hex color code to color name in VB Script?

4095


why do u choose to go for testing why cant for devoloping

1751


Which operator is used to concatenate the 2 values in the vbscript language?

713


How strcomp function works?

784


why variable name should not exceed 255 characters?

1942


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1921