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 |
How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.
How regexp.execute method works?
write a vb script to rename a folder from tree4 to tree7
am giving to one number u can set into that in date format.u can use any methods
Which function is used to perform string comparison?
Difference between Function and Sub routine?
What is the use of "Option Explicit"?
write a program to display configuration of a local system with the help of vb script.
How will you reverse a string in vbscript?
write a vb script to display factorial of a number using function
why variable name should not exceed 255 characters?
How can I get the value of an object property or variable in another frame?