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 let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
what is diff between static and dynaic arrys?
How can you create an object in vbscript?
How to assign a numeric value to a variable?
why variable name should not exceed 255 characters?
Which object provide information about a single runtime error in a vbscript?
Which operator can be used to do an xor operation in vbscript?
How to delete a cookie using vbscript?
What is the scope of a constant declared using public?
How strcomp function works?
Which command is used for writing text on a page?
How do i automate a website www.flyashx.com without having any test cases witin a week time.
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
What is difference between vbscript and vba?
Explain different types of segment?