how to find greatest of n numbers!
Answers were Sorted based on User's Feedback
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 ? | 7 Yes | 1 No |
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 ? | 6 Yes | 4 No |
Why is error handling required?
What are the properties of regexp object?
Which in-built function is used to format the number in the vbscript language?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
am giving to one number u can set into that in date format.u can use any methods
accept a string & display whether a is present or not
What is the extension of the vbscript file?
what is test scenario?
How will you release the memory acquired by an array variable in vbscript?
print the array values in ascending order?
we executed QTP scripts in one browser(i.e IN)same scripts is working on another browsers or not (i.e mean netscap,m azol..like )