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

What is action?

571


How to recognise the webelement and verifying that webelement is enabled?

1641


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1757


Suggest and Define a solution for an application whose objects are not recognized by UFT?

666


How to integrate the qualitycenter with qtp

1769






How to do call a output parameter from one action to another action??/

1870


Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!

1747


Can you brief the hurdles you faced during Automation testing?

575


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

3760


Where you are storing your script?

629


If created one virtual object? Next time I changed the window position will it work?

575


Explain measuring transaction.

586


What is parameter in qtp?

676


By using QTP can we record any log files written by the application which is in execution?

1471


Explain the concept of how quicktest professional identifies object?

532