Hi, Anybody could tell me What is the 3rd Largest Number in
the series..Thanks in Advance..
Answers were Sorted based on User's Feedback
Answer / 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 |
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 |
Answer / 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 |
How to pass the parameter from one function to another function in VB Scripting?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
which is the best institute in banglaore for software testing?
Why is error handling required?
what is descriptive programming in QTP and what is environment variable in QTP? where we store and what is its use?
How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)
How can you fetch the value of a cookie?
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
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
How do you get the value of a combo box in Javascript?
what is extension of the file if its saved from recovery manger to some drive
To get data from table which method will be used in QTP