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 |
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
How to select a value from a list box by using Selenium web-driver?
Difference between dim,public and private variables in vb script?
Explain a few date functions in vbscript
while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans
Mention what is vbscript procedures?
hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time..and what property we should take while we r using descriptive programming for a link..
how to find number of characters(letter a) in the sentence Rain Rain Go away
Mention how you can call vbscript functions?
How many types of operators are available in the vbscript language?
How can constants be declared in the vbscript language?
How to write functional test cases for send button in gmail.