Hi, Anybody could tell me What is the 3rd Largest Number in
the series..Thanks in Advance..

Answer Posted / pushkar1206

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the spaces from the string be removed?

592


If else for do while select in vb script?

645


Mention how to create a cookie using vbscript?

531


How can you create an object in vbscript?

616


who will create the object?

1721






what is the difference between modular and data and keyword driven framework

1740


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

581


What are the data types supported by vbscript?

580


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3554


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2022


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

483


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

1614


Explain How do you create a recordset object in vbscript?

566


Explain about tristate constants in vbscript?

617


Write a code to print numbers from 5 to 0?

674