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

Does VB/Win make standalone .EXE files?

0 Answers  


Diff between web table ,datatable and data base (QTP)

2 Answers   TCS,


Explain about adodb.stream class?

0 Answers  


How can I get the value of an object property or variable in another frame?

1 Answers   Citi Bank,


Description.Create

0 Answers   IBM,


how to organize files in object repository of qtp

1 Answers  


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

0 Answers  


What are the properties of regexp object?

0 Answers  


how do you make the variable declaration mandatory?what is the use of "option explicit"?

2 Answers  


Explain the support of asp for vb script functionality?

0 Answers  


How to take whole text output from screen of Bitmap Application.

0 Answers   CitiGroup,


how to write validation function for date in vb script

0 Answers  


Categories