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
write any ttest cases using check points and parameterization
How will you release the memory acquired by an array variable in vbscript?
Differentiate javascript and vbscript?
What is loose binding? Why is it not a good practice to use it?
What is dictionary object in vbscript? Explain?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
What is event handling in vbscript?
How can constants be declared in the vbscript language?
How to declare an array in vbscript?
how to write validation function for date in vb script
Which operator can be used to check if two numbers are equal or not in vbscript?
What is vbscript language used for and which earlier language is it modeled upon?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
What is select case statement?
How do you declare a variable in vbscript?