write a vb script to display first 5 odd numbers from 1 to 100
Answer Posted / eswar
cnt =0
For i=1 to 100
If (i mod 2 <> 0) Then
MsgBox i
cnt=cnt+1
End If
If cnt=5 Then
Exit for
End If
Next
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
How to open excel in vb script?
what is the features of visual basic?
Mention how to access array data?
Which operator can be used to check if two numbers are equal or not in vbscript?
Which event is triggered when mouse focus comes out of an element in the vbscript language?
What is the purpose of on error resume next statement?
What is the purpose of regexp object in vbscript?
How to pass argument by reference to a function in vbscript?
How to delete a cookie using vbscript?
Mention what is vbscript procedures?
Explain what is loose binding? Why is it not a good practice to use it?
How can constants be declared in the vbscript language?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
What is the difference between a dictionary and an array?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?