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

Answer Posted / pradeep

For i=1 to i=50
if (i mod 2=0)then
messagebox i&"is even number"
else
messagebox i&"is odd number"
endif
next

Is This Answer Correct ?    23 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you perform Regreession Testing?

1458


What are the differences between qtp and winrunner?

533


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

5874


How many ways is to parameterize the value?

615


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

1847






Did the scripts need lot of maintenance? If yes, why?

3294


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1355


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

1443


how to find that tools work well with your existing system?

1401


Why qtp always start action1 and does not start action?

601


How will you report the bug and explain the defect tracking sheet you handled?

2550


What is recovery scenario manager? When you go for recovery scenario manager?

588


What is meant by Output Value in UFT?

563


Explain the types of object repository?

553


On what document base Descriptive programming is written if build is not yet ready ?

873