How to fine greatest number from the given numbers in vb script
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
No comments:
Post a Comment