Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / mudaseer

dim i,vcnt,vstro
vcnt=0
for i=1 to 100 step 2
vstro=vstro & i & vbnewline
vcnt=vcnt+1
if vcnt=5 then exit for
next
msgbox vstro

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is loose binding? Why is it not a good practice to use it?

1049


Explain about tristate constants?

950


Explain vbscript in detail?

1006


Explain few date functions in vbscript?

997


what is event handling?

942


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

948


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

3379


When does ‘on click of button’ event gets triggered in the vbscript language?

940


What are the special sub-types in vbscript?

985


write any ttest cases using check points and parameterization

2218


What is the extension of the vbscript file?

987


What's the difference between vbscript and vb.net?

1032


When are redim statement and preserve keyword used in the vbscript language?

985


Can u describe what kind of testing are for OTC derivates by banks.

2077


Mention when to use function procedures and what are its characteristics?

1054