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 |
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
write a vb script to find simple interest using functions
How will you get the last occurrence of one string within another string using vbscript?
how to check whether link is disabled in QTP??
write a vb-script code to delete all the mails in my gmail in the year 2011
give me any information abou vb script books learn quckly
Differentiate javascript and vbscript?
Which in-built function related to an array joins substrings into one string in the vbscript language?
What are the different types of loops available in the vbscript language?
Which operator can be used to check if two numbers are equal or not in vbscript?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Give examples where vb script can directly run on users system with windows as os?