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
Which operator can be used to check if two numbers are equal or not in vbscript?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
Mention characteristics of sub procedures?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
How can you destroy an object in vbscript?
Mention what is byref and byval parameters in vbscript?
Why to use option explicit in vb script?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Explain what is loose binding? Why is it not a good practice to use it?
write any ttest cases using check points and parameterization
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me
what is event handling?
How to open browser in vb script?
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar