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 ? | 33 Yes | 19 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 |
How can we upload pdf files in qtp?
What is debugging? How you debug your script?
Could someone explain me how to work on Out put values, explain with some example on Flight Reservation. I want to insert the out put value for the order No. Please explain the steps with some example.
how do u get lib files into scripting files?
What’s the QTP testing process?
1.what is test automation life cycle?
In how may ways we can use checkpoints to an application using QTP?
What is the logic for reading(exporting)the data from flat files to QTP?Can anyone explain me with an example? I appreciate it!!! Thanks!!! Prasanna
How many types of status are there?
What is the use of text output value in quicktest professional?
What is vulnerability?
General Ques : At What State u start Automating ? means at what stage we start writing QTP scripts ?