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
How to Import data from a file (file is on the desktop) to the data table
Mention the environments where vbscript could be run?
In what way program "hello world" you can write in vbscript?
How will you convert a string to upper case string using vbscript?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
Illustrate briefly about the different types of statement
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
How to Convert Hex color code to color name in VB Script?
hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
What is purpose of scripting.filesystemobject class in vbscript?
filter the array values without using filter function?
Explain about .wsf files?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?