Answer Posted / 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 |
Post New Answer View All Answers
Why is the use of exit do or exit for statements within loops discouraged?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
What is loose binding? Why is it not a good practice to use it?
How can the spaces from the string be removed?
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji
How to create a function in vbscript?
What is purpose of scripting.filesystemobject class in vbscript?
what is used of Property........End Property loop ? how to write the script for it?
Explain about vb script?
How will you format a number in percetage format in vbscript?
How to assign a date value to a variable?
How to get the length of the string by making use of the string function?
Difference between dim,public and private variables in vb script?
What is the use of the date function in the vbscript language?
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks