Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to find greatest of n numbers!

Answers were Sorted based on User's Feedback



how to find greatest of n numbers!..

Answer / mudaseer

dim varr(4),vhigh
for i=0 to 4 step 1
varr(i)=cint(inputbox("enter the value"))
next
vhigh=varr(0)
for i=1 to 4 step 1
if varr(i)>vhigh then
vhigh=varr(i)
end if
next
msgbox vhigh

Is This Answer Correct ?    8 Yes 2 No

how to find greatest of n numbers!..

Answer / raju

dim i, lar, j, a()
i=Cint(Inputbox("Enter the value how many value to be enter"))
for j=1 to i
ReDim a(i)
a(j)=inputbox("enter the numbers")
Next
lar=a(0)
for j=1 to i
If a(j)>lar Then
lar=a(j)
End IF
Next
msgbox "Largest Number is" & lar

Is This Answer Correct ?    8 Yes 4 No

how to find greatest of n numbers!..

Answer / venkatesh

option explicit
dim myarray,max,i
myarray = array( 34,23,45,67,12 )
max=myarray(0)
for i=0 to ubound(myarray)
if max < myarray(i) then
max=myarray(i)
end if
next
msgbox "max number is : "&max

Is This Answer Correct ?    5 Yes 5 No

Post New Answer

More VB Script Interview Questions

in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script

2 Answers  


write a vb script to find simple interest using functions

1 Answers  


How will you get the last occurrence of one string within another string using vbscript?

0 Answers  


how to check whether link is disabled in QTP??

0 Answers  


write a vb-script code to delete all the mails in my gmail in the year 2011

1 Answers  


give me any information abou vb script books learn quckly

0 Answers  


Differentiate javascript and vbscript?

0 Answers  


Which in-built function related to an array joins substrings into one string in the vbscript language?

0 Answers  


What are the different types of loops available in the vbscript language?

0 Answers  


Which operator can be used to check if two numbers are equal or not in vbscript?

0 Answers  


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

0 Answers  


Give examples where vb script can directly run on users system with windows as os?

1 Answers  


Categories