write a vb script to print even numbers from 1-50?
Answers were Sorted based on User's Feedback
Answer / smitha
for i = 1 to 50
if i mod 2 = 0 Then
evenStr = evenstr & i & " , "
end if
Next
MsgBox evenStr
| Is This Answer Correct ? | 34 Yes | 20 No |
Answer / alam
Num i
for i =1 To20
if mod 2=0
print number is evevn
else
print number is not even
end sub
| Is This Answer Correct ? | 4 Yes | 10 No |
Answer / 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 |
Answer / 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 |
What are the various versions of QTP that have been released so far? Please also mention the year of release for each version
what is retesting?
How can we translate the steps between the Keyword and Expert Views?
How smart identification works in qtp ?
how to idetfy which test cases are automated?who will deside that plz tell me
what is the extension for QTP files?
16 Answers American Solutions,
What is Virtual Users?
What is the QTP test frame work?
What are the factors on which script execution time is dependent?
i have qtp 9.5 ver software.but i don't know the license key. if anyone have license key please send it to my personal mail id(munir.reddy@yahoo.com
How many ways we can parameterize data in QTP?
why do we use both location and index identifier.