how to find greatest of n numbers!

Answer Posted / 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 ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about vb script?

753


How to write functions and sub in vb script?

625


When are redim statement and preserve keyword used in the vbscript language?

604


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

515


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1543






how to check whether link is disabled in QTP??

5635


What are lbound and ubound in the vbscript language?

609


How are values assigned to string type and numeric type variables?

542


Illustrate briefly about the different types of statement

2027


filter the array values without using filter function?

1659


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

873


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1421


What is Procedure or Subroutine in VB Script?

606


Write a code to print numbers from 5 to 0?

687


Is VB Script Case sensitive or Case insensitive?

640