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

Answer Posted / anwar basha

dim temp,i,j
a=array(5,3,7,9,2,...)

for i=0 to ubound(a)-1
for j=i+1 to ubound(a)
if a(i)>a(j) then
temp=a(i)
a(i)=a(j)
a(j)=temp
end if
next
next
k=ubound(a)-2
msgbox a(k)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is byref and byval parameters in vbscript?

607


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2904


Explain the scope of the variables using dim, public, and private keywords respectively.

723


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2063


What are the 2 ways in which a variable can be declared in the vbscript language?

565






What is vbscript?

600


Which operator is used to concatenate the 2 values in the vbscript language?

559


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1569


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2505


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1494


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1876


Explain what is loose binding? Why is it not a good practice to use it?

581


Write a code to print numbers from 5 to 0?

676


hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

2585


i need to sort the data using qtp script for this how i need to write a qtp script

3221