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


Please Help Members By Posting Answers For Below Questions

In qtp, how you can exit for loop?

524


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1473


Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan

2056


how will you check how many members visited the website www.infosys.com?

1477


What are the different types of qtp test assets and their extensions?

594






Hello friends..... On which areas of an application we can not test with QTP

1553


How many ways we can parameterize data in quicktest professional (qtp)?

583


how to test use the quality control .how to verify the image verification

2542


What is the virtual object?

638


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

865


What are the recording modes in qtp?

579


What is the significance of “action 0” in qtp?

563


What is quicktest professional (qtp)?

565


What is the difference between call to existing action and copy of an action?

602


How to remove the associated function library?

525