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
after medical test,when will be the police verification
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
How to open a file. What is the perpose of true and false mode there?
Which operator can be used to do an xor operation in vbscript?
what is the standards used for writing the script in QTP
What is the difference between vb debugger and the script debugger?
Explain How do you create a recordset object in vbscript?
Explain the adodb.stream class?
Explain the functionality of vbscript?
How to Import data from a file (file is on the desktop) to the data table
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
Description.Create
Which command is used for writing text on a page?