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

I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

862


How are values assigned to the variables in the vbscript language?

568


how does vb script help in web page designing? explain with example.

1584


What are the 2 ways in which a variable can be declared in the vbscript language?

563


What is difference between vbscript and vba?

606






Mention how to create a cookie using vbscript?

525


What is the difference between vbscript and vba?

598


What methods are used to create text files and open text files in the vbscript language?

532


What are class events?

578


Explain the .wsf files?

530


How will you format a number in percetage format in vbscript?

587


Explain about .wsf files?

617


How will you get the exponent of the given number in vbscript?

550


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2897


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

538