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

Answer Posted / pushkar1206

a=array(1,22,3,40,12)
For i=0 to ubound(a)
For j=0 to ubound(a)
If a(i)>a(j) then
temp=a(i)
a(i)=a(j)
a(j)=temp
end if
Next
Next
print a(2)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which function allows you to instantiate an object given its programmatic identifier or progid?

562


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

3222


Explain about scrrun.dll in vbscript?

654


What is the use of option explicit in vbscript?

546


How are arrays declared in the vbscript language?

549






How do i automate a website www.flyashx.com without having any test cases witin a week time.

1461


Mention what is select case statement?

548


What is the scope of a constant declared using public?

566


Explain the asc function?

510


What are string functions in vbscript?

658


What is the difference between do until loop and do while loop?

545


Explain the arrays in vb script?

595


why do u choose to go for testing why cant for devoloping

1595


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

584


Explain about tristate constants?

587