write a vb script to print even numbers from 1-50?
Answer Posted / nazir
dim i
for i = 1 to 50
if i mod 2 = 0 then
print i & ' is an even number"
else
print i & " is an odd number"
endif
next
| Is This Answer Correct ? | 10 Yes | 17 No |
Post New Answer View All Answers
What are output values and why they are used ?
QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
How do we handle run-time errors?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
How to find Operating system information using QTP script?
Explain the parameter in qtp?
Explain QTP using different development techniques ?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
What are the types of properties that quick test learns while recording?
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
How to replay a script in qtp?
I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?