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
Explain about the extension .hta?
What are the naming conventions while declaring a variable in the vbscript language?
What is the difference between for loop and while loop?
What are the different types of operators and their order of precedence?
Mention what is vbscript procedures?
Explain about tristate constants?
What are the different types of loops available in the vbscript language?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
Write a code to print numbers from 5 to 0?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
How many types of procedures are available in the vbscript language?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
Which operator is used to perform the comparison among 2 operands in the vbscript language?
Which operator can be used to change the value of the operand or change the state of the condition?
Explain a few date functions in vbscript