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

Explain the operator precedence in vb script?

656


What is the technology used by vb script?

544


Explain the .wsf files?

533


Which function is used to perform string comparison?

568


What are the naming conventions while declaring a variable in the vbscript language?

621






What is sql loader? Explain the files used by sql loader to load file?

624


What is the difference between function and procedure?

579


Illustrate briefly about the different types of statement

2027


How you can call vbscript functions?

581


Mention what is select case statement?

548


what is the differance between BYVAL,BYREF?

1771


How to capture a runtime error in vbscript?

630


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

583


how to check whether link is disabled in QTP??

5633


Which operator can be used to do an xor operation in vbscript?

684