write a vb script to display first 5 odd numbers from 1 to 100

Answer Posted / anjali tamrakar

Private sub form_load()
Dim a as integer
Dim b as integer
B=0
For A=1 to 100 step2
B=B+A
Print A,B
Next A
End sub

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add actions in driver script to run those actions in QTP?

1530


Does VB/Win make standalone .EXE files?

2912


Is vbscript language a case-sensitive language and what does it mean?

556


Which in-built function related to an array joins substrings into one string in the vbscript language?

522


Both Static and dynamic arrays are handled by VB script. Is it true?

624






Write a Script for ATM in QTP

3357


Which data type/types are supported by vbscript language and what are their specialties?

609


Explain the scope of the variables using dim, public, and private keywords respectively.

727


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1671


what is event handling?

592


How will you convert a string to upper case string using vbscript?

569


What are keywords in the vbscript language?

535


What is the technology used by vb script?

548


Difference between dim,public and private variables in vb script?

536


Explain the adodb.stream class?

558