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 to declare an array in vbscript?
Explain about the functionality of vb script?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
How will you get the natural logarithm of the given number in vbscript?
How will you get the smallest subscript of an array in vbscript?
Explain the filter expression?
How can you create a file object to work with the files in the vbscript language?
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
Explain about scrrun.dll in vbscript?
Compare java script and vb script?
What is the output of a + b in vbscript if a = 5 and b = 10?
Explain about tristate constants in vbscript?
what is the object hyrarchy in QTP for a web based application
What is Procedure or Subroutine in VB Script?