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 ? | 8 Yes | 2 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 ? | 8 Yes | 4 No |
w r p syed then output was deys and click eysd and click ysde and click sdey and click deys and click eysd............
what types of bugs will we find out in banking projects for automation testing?
0 Answers Napier Healthcare, TCS,
Mention what is select case statement?
int a=4857 i need output as 7584.without using any inbuild function?
How will you compare two strings in vbscript?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
How to pass the parameter from one function to another function in VB Scripting?
Which object provide information about a single runtime error in a vbscript?
how to add action through AOM in QTP
Explain about adodb.stream class?
What is the technology used by vb script?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.