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

There are 5 web pages.write a script to click the button on 4th web page.

2942


What is select case statement?

609


How to replace junk code recorded by QTP with a mall function.

1649


Which command is used for writing text on a page?

578


give me any information abou vb script books learn quckly

1661






What is the purpose of folders object of scripting.filesystemobject class in vbscript?

873


Which in-built function is used to format the number in the vbscript language?

581


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

1773


How are values assigned to string type and numeric type variables?

542


How to make sure that items in a wintree are sorted al?

2358


Mention what is the use of option explicit in vbscript?

551


What are the special sub-types in vbscript?

554


What are the naming conventions while declaring a variable in the vbscript language?

621


Explain the filter expression?

634


What are subprocedures in vbscript?

666