write a vb script to display first 5 odd numbers from 1 to 100
Answer Posted / mudaseer
dim i,vcnt,vstro
vcnt=0
for i=1 to 100 step 2
vstro=vstro & i & vbnewline
vcnt=vcnt+1
if vcnt=5 then exit for
next
msgbox vstro
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
Both Static and dynamic arrays are handled by VB script. Is it true?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
How will you get the natural logarithm of the given number in vbscript?
What is the difference between for loop and while loop?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
How can constants be declared in the vbscript language?
How will you get a combined string from array of string in vbscript?
why variable name should not exceed 255 characters?
How will you get the largest subscript of an array in vbscript?
When to use function procedures and what are its characteristics?
What is vbscript language used for and which earlier language is it modeled upon?
In what way program "hello world" you can write in vbscript?
Explain about constants in vb script?
How should i Create Email invite with server-side Coding?