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 |
Explain the keyword createobject with an example.
Where we use data driver in qtp?
Hi All, How to Compare two strings character by character in QTP
is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE
Question:how many types of repositories in QTP9.2?and explain??
What is the difference between shared and local object repository?
Among the 4 capture levels, Complete, Partial, Minimal, None. which one is mostly used?
How do we retrieve the content from a text box in a web page
I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2nd place to 3rd place Etc… in my webpage. I wanted to write script for dynamical objects like above example. Could you please send me the answer for above query.
Explain the benefits of quick test pro(qtp)?
i need to learn the descriptive programming very well so for that what to do am reading the qtp user mannual but it is not so any materials or links with examples i want please help me
what is advantage of descripting programming in QTP?