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

how does vb script help in web page designing? explain with example.

0 Answers  


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

0 Answers   Estuate,


How to get the length of the string by making use of the string function?

0 Answers  


what is the use of Data base check point ?

3 Answers  


Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

0 Answers  






Difference between Do while loop and while wend loop

1 Answers  


What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.

3 Answers   Accenture,


what is the features of visual basic?

0 Answers  


In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?

1 Answers  


I want good books or good sites for scripting.Can any one help me.

0 Answers   Wipro,


How to declare an array in vbscript?

0 Answers  


write a program to display configuration of a local system with the help of vb script.

0 Answers  


Categories