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 generate fibonnaci numbers

Answer Posted / mudaseer

vnum=inputbox("enter a number")
i=0
j=1
vstr=i & "," & j & ","
msgbox vstr
for x=1 to vnum-2
k=i+j
vstr=vstr & k & ","
i=j
j=k
next
msgbox vstr

vnum=inputbox("enter a no")
i=0
j=1
vstr=i & "," & j & ","
msgbox vstr
for x=1 to vnum-2
k=i+j
vstr=vstr & k & ","
i=j
j=k
next
msgbox vstr

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What purpose does ‘on error resume next’ serves?

1006


Mention the rules for using option explicit statement?

925


Write a Script for ATM in QTP

3796


Mention what are the rules to name variable in vbscript?

956


Explain the asc function?

873


Explain a few date functions in vbscript

935


how to acces the remote mechine using vb cript(QTP)

1967


how to comvert 120 into one hunderd twenty rupees only and vice varsa

2273


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2913


What is the use of option explicit in vbscript?

947


How to throw an error in vbscript?

1073


What is select case statement?

989


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2463


What are the environments supported by vbscript language?

869


Which object provide information about a single runtime error in a vbscript?

1010