write a vb script to print even numbers from 1-50?

Answer Posted / ravi

dim i
for i=1 t0 50
if (i mod 2=0) then
msgbox i&"is even number"
else
msgbox i&"is odd number"
end if
next

Is This Answer Correct ?    64 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2101


What is Curd testing?

1881


How to create scenario selector

1479


What are the types of object repositories? Which one is you are using?

629


What is test object model in quicktest professional (qtp)?

545






Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2196


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

1421


Explain the types of object repository?

553


what are all the fileds present in object repository?

1560


what is output value in QTP and how it can be used in automation testing

1434


Can we record using all the modes in a single script? Explanation with example is appreciated

1385


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

603


In qtp, explain what is crypt object

597


HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com

1535


How to save your test using quicktest professional (qtp)?

592