Hi, Anybody could tell me What is the 3rd Largest Number in
the series..Thanks in Advance..

Answer Posted / saket bharti

a=Array(-1,0,23,-12,98,-300)

Dim temp,i,j

For j=0 to UBound(a)-1

For i=0 to UBound(a)-1

If a(i)<a(i+1) then

temp=a(i+1)

a(i+1)=a(i)

a(i)=temp

End If

Next

Next

Msgbox a(2)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1537


what is diff between static and dynaic arrys?

1584


How can you create an object in vbscript?

612


How to assign a numeric value to a variable?

614


why variable name should not exceed 255 characters?

1813






Which object provide information about a single runtime error in a vbscript?

597


Which operator can be used to do an xor operation in vbscript?

676


How to delete a cookie using vbscript?

547


What is the scope of a constant declared using public?

552


How strcomp function works?

621


Which command is used for writing text on a page?

574


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1449


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1660


What is difference between vbscript and vba?

606


Explain different types of segment?

563