Interview Questions   Tutorials   Discussions   Programs   Videos   

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




1294
views
asked marvit August 21, 2014 01:43 AM  

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


           

1 Answers



 
answered By Dharma   0  
Dim i
For i = 1 to 50
if i mod 2 = 0 Then
evenStr = evenstr & i & " , "
end if
Next
MsgBox evenStr 
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert