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

Answer Posted / smitha

for i = 1 to 50
if i mod 2 = 0 Then
evenStr = evenstr & i & " , "
end if
Next
MsgBox evenStr

Is This Answer Correct ?    33 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does quicktest professional is unicode compatible?

519


What is ObjectParamater?

1571


How to get the particular property value?

612


how to acess a test in RSA?

1667


Have you faced any problems with object repository?

591






What is the recovery scenario in qtp?

569


wht type of User defined functions or Java Releated functions Do we write in VB scripting

1378


How to use parameterization in qtp?

620


Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

1320


What is object spy in quicktest professional (qtp)?

538


What are the features of quick test pro(qtp)?

533


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


How can I check if a environment variable exist or not?

537


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1726


can i compare two databases using QTP ?

1880