write a vb script to display first 5 odd numbers from 1 to 100
Answer Posted / psri
dim a(50)
j=0
for i = 1 to 100
if (i mod 2) <> 0 then
a(j)=i
j=j+1
cnt=cnt+1
End if
next
msgbox "The odd no is "& join(a) &"The total no of odd no's
is"&cnt
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How will you get a combined string from array of string in vbscript?
Explain about scrrun.dll in vbscript?
about vb scripting programs this type of all question& answers
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
How will you convert a given number to long in vbscript?
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
What is vbscript language used for and which earlier language is it modeled upon?
Mention what are the rules to name variable in vbscript?
Explain a few date functions in vbscript
did any one attended interview in applabs if you had gone through plz tell me the procedure
What are keywords in the vbscript language?
How to add actions in driver script to run those actions in QTP?
1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)
What are the naming conventions while declaring a variable in the vbscript language?
Explain the adodb.stream class?