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

Mention the rules for using option explicit statement?

0 Answers  


write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


How will you get the largest subscript of an array in vbscript?

0 Answers  


Suppose by navigation I went from 1 st page to 5 page ,so Write a generic script for coming from any page to the 1st page and by executing where the page may be it will come to 1st page

1 Answers   CybAge,


How will you convert a string to upper case string using vbscript?

0 Answers  






Explain few date functions in vbscript?

0 Answers  


How to create a cookie using vbscript?

0 Answers  


How can you fetch the value of a cookie?

0 Answers  


How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

1 Answers   Google, IBM,


i want to when we will write the scripts either after getting the build or after getting the SRS?

3 Answers  


when you use For Loop, While..do, do..while? at what situations which loop will use.

1 Answers  


What is purpose of scripting.filesystemobject class in vbscript?

0 Answers  


Categories