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
How should i Create Email invite with server-side Coding?
How to write VB script for login module?
What is the extension of the vbscript file?
How are values assigned to string type and numeric type variables?
Mention what is the use of option explicit in vbscript?
Explain about adodb.stream class?
Mention how to assign a date value to a variable?
Mention what is vbscript?
Explain the extension .hta?
what is used of Property........End Property loop ? how to write the script for it?
what is the standards used for writing the script in QTP
How to declare an array in vbscript?
Difference between dim,public and private variables in vb script?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
What is the purpose of the err object in the vbscript language?