write a vb script to generate fibonnaci numbers



write a vb script to generate fibonnaci numbers..

Answer / 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

More VB Script Interview Questions

which is the good software training centre in bangalore?

1 Answers  


Explain the functionality of vbscript?

0 Answers  


What are the disadvantages of vbscript?

0 Answers  


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

0 Answers  


What is the difference between javascript and vbscript?

0 Answers  


generic function for webedit box for web application

1 Answers  


How to Import data from a file (file is on the desktop) to the data table

1 Answers   IBM,


Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)

0 Answers   TCS, Wipro,


How can constants be declared in the vbscript language?

0 Answers  


How will you convert a given number to long in vbscript?

0 Answers  


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

0 Answers  


sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap

4 Answers  


Categories