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
Out of the different type of operators, which are evaluated first and last in the vbscript language?
how to comvert 120 into one hunderd twenty rupees only and vice varsa
Explain about constants in vb script?
How to write functions and sub in vb script?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
what is the object hyrarchy in QTP for a web based application
Explain some uses of vb script?
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?
Explain the extension .hta?
What is the difference between function and procedure?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
wht must be the interview question on corinthian information technology solutions incorporated.
How can you create a file object to work with the files in the vbscript language?
Which object provide information about a single runtime error in a vbscript?
Which event is triggered when mouse focus comes out of an element in the vbscript language?